Logo Search packages:      
Sourcecode: icu version File versions  Download package

const char* StringPiece::data (  )  const [inline]

Returns the string pointer. May be NULL if it is empty.

data() may return a pointer to a buffer with embedded NULs, and the returned buffer may or may not be null terminated. Therefore it is typically a mistake to pass data() to a routine that expects a NUL terminated string.

the string pointer ICU 4.2

Definition at line 111 of file stringpiece.h.

Referenced by Collator::compareUTF8(), operator==(), and DigitList::set().

{ return ptr_; }

Generated by  Doxygen 1.6.0   Back to index