Lines Matching defs:len
29 StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) {
35 if (len < 0) {
36 len = 0;
37 } else if (len > x.length_ - pos) {
38 len = x.length_ - pos;
41 length_ = len;
54 int32_t len = x.size();
55 if (len != y.size()) {
58 if (len == 0) {
64 --len;
65 if (p[len] != p2[len]) return false;
67 return uprv_memcmp(p, p2, len) == 0;