Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

Cut

« XPCOM API Reference

Summary

The Cut function removes a section of the string's internal buffer.

 void Cut(
   index_type aCutStart,
   index_type aCutLength
 );

Parameters

aCutStart
[in] The starting index of the section to remove, measured in storage units.
aCutLength
[in] The length of the section to remove, measured in storage units.

Document Tags and Contributors

 Contributors to this page: Sheppy, Pmash
 Last updated by: Sheppy,