Home
last modified time | relevance | path

Searched refs:length_with_null (Results 1 - 2 of 2) sorted by relevance

/third_party/gn/src/base/strings/
H A Dstring_util.cc843 size_t length_with_null) { in WriteIntoT()
844 DCHECK_GT(length_with_null, 1u); in WriteIntoT()
845 str->reserve(length_with_null); in WriteIntoT()
846 str->resize(length_with_null - 1); in WriteIntoT()
850 char* WriteInto(std::string* str, size_t length_with_null) { in WriteInto() argument
851 return WriteIntoT(str, length_with_null); in WriteInto()
854 char16_t* WriteInto(std::u16string* str, size_t length_with_null) { in WriteInto() argument
855 return WriteIntoT(str, length_with_null); in WriteInto()
842 WriteIntoT(string_type* str, size_t length_with_null) WriteIntoT() argument
H A Dstring_util.h336 // Reserves enough memory in |str| to accommodate |length_with_null| characters,
337 // sets the size of |str| to |length_with_null - 1| characters, and returns a
344 // |length_with_null| must be at least 2, since otherwise the underlying string
350 // (|length_with_null - 1| * sizeof(string_type::value_type)) bytes. Ideally we
356 char* WriteInto(std::string* str, size_t length_with_null);
357 char16_t* WriteInto(std::u16string* str, size_t length_with_null);

Completed in 4 milliseconds