Home | History | Annotate | Download | only in common

Lines Matching refs:sLength

48 CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) {
52 if(sLength<-1 || (s==NULL && sLength!=0)) {
56 if(sLength<0) {
57 sLength=uprv_strlen(s);
59 if(sLength>0) {
62 if(sLength>=(buffer.getCapacity()-len)) {
66 buffer[len+=sLength]=0;
69 sLength>=(buffer.getCapacity()-len)
73 return append(CharString(s, sLength, errorCode), errorCode);
74 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) {
75 uprv_memcpy(buffer.getAlias()+len, s, sLength);
76 buffer[len+=sLength]=0;