MCPcopy Create free account
hub / github.com/aboSamoor/pycld2 / data

Method data

cld2/internal/stringpiece.h:70–70  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

68 // typically a mistake to pass data() to a routine that expects a NUL
69 // terminated string.
70 const char* data() const { return ptr_; }
71 stringpiece_ssize_type size() const { return length_; }
72 stringpiece_ssize_type length() const { return length_; }
73 bool empty() const { return length_ == 0; }

Callers 9

UTF8GenericScanFunction · 0.80
UTF8GenericScanFastAsciiFunction · 0.80
UTF8GenericReplaceFunction · 0.80
UTF8TrimToCharsFunction · 0.80
StringPieceMethod · 0.80
LangDetLinesOfFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected