Lines Matching refs:len

24     if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) {  in copyFrom()
25 len=s.len; in copyFrom()
26 uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1); in copyFrom()
32 for(int32_t i=len; i>0;) { in lastIndexOf()
44 if(newLength<len) { in truncate()
45 buffer[len=newLength]=0; in truncate()
51 if(ensureCapacity(len+2, 0, errorCode)) { in append()
52 buffer[len++]=c; in append()
53 buffer[len]=0; in append()
70 if(s==(buffer.getAlias()+len)) { in append()
72 if(sLength>=(buffer.getCapacity()-len)) { in append()
76 buffer[len+=sLength]=0; in append()
78 } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) && in append()
79 sLength>=(buffer.getCapacity()-len) in append()
84 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
85 uprv_memcpy(buffer.getAlias()+len, s, sLength); in append()
86 buffer[len+=sLength]=0; in append()
100 int32_t appendCapacity=buffer.getCapacity()-len-1; // -1 for NUL in getAppendBuffer()
103 return buffer.getAlias()+len; in getAppendBuffer()
105 if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) { in getAppendBuffer()
106 resultCapacity=buffer.getCapacity()-len-1; in getAppendBuffer()
107 return buffer.getAlias()+len; in getAppendBuffer()
121 if(ensureCapacity(len+s.length()+1, 0, errorCode)) { in appendInvariantChars()
122 len+=s.extract(0, 0x7fffffff, buffer.getAlias()+len, buffer.getCapacity()-len, US_INV); in appendInvariantChars()
137 if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==NULL) && in ensureCapacity()
138 buffer.resize(capacity, len+1)==NULL in ensureCapacity()
155 if(len>0 && (c=buffer[len-1])!=U_FILE_SEP_CHAR && c!=U_FILE_ALT_SEP_CHAR) { in appendPathPart()
164 if(U_SUCCESS(errorCode) && len>0 && in ensureEndsWithFileSeparator()
165 (c=buffer[len-1])!=U_FILE_SEP_CHAR && c!=U_FILE_ALT_SEP_CHAR) { in ensureEndsWithFileSeparator()