Lines Matching defs:length
60 int32_t length;
68 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName,
71 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
74 buffer=result.getBuffer(length);
80 length=uloc_getDisplayLanguage(fullName, displayLocale.fullName,
83 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
100 int32_t length;
108 length=uloc_getDisplayScript(fullName, displayLocale.fullName,
111 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
114 buffer=result.getBuffer(length);
120 length=uloc_getDisplayScript(fullName, displayLocale.fullName,
123 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
140 int32_t length;
148 length=uloc_getDisplayCountry(fullName, displayLocale.fullName,
151 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
154 buffer=result.getBuffer(length);
160 length=uloc_getDisplayCountry(fullName, displayLocale.fullName,
163 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
180 int32_t length;
188 length=uloc_getDisplayVariant(fullName, displayLocale.fullName,
191 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
194 buffer=result.getBuffer(length);
200 length=uloc_getDisplayVariant(fullName, displayLocale.fullName,
203 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
220 int32_t length;
228 length=uloc_getDisplayName(fullName, displayLocale.fullName,
231 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
234 buffer=result.getBuffer(length);
240 length=uloc_getDisplayName(fullName, displayLocale.fullName,
243 result.releaseBuffer(U_SUCCESS(errorCode) ? length : 0);
308 int32_t length = 0;
315 s=ures_getStringByKey(rb.getAlias(), tableKey, &length, pErrorCode);
329 &length,
339 &length,
346 int32_t copyLength=uprv_min(length, destCapacity);
352 length=(int32_t)uprv_strlen(substitute);
353 u_charsToUChars(substitute, dest, uprv_min(length, destCapacity));
357 return u_terminateUChars(dest, destCapacity, length, pErrorCode);
370 int32_t length;
385 length=(*getter)(locale, localeBuffer, sizeof(localeBuffer), &localStatus);
390 if(length==0) {
504 int32_t length; /* of formatted result */
607 int32_t langLen=0; /* length of language substitution */
609 int32_t restLen=0; /* length of 'everything else' substitution */
622 length=sub0Pos;
624 length=0;
632 int32_t cap=destCapacity-length;
636 p=dest+length;
641 langPos=length;
643 length+=langLen;
651 int32_t len; /* length of component (plus other stuff) we just fetched */
654 restPos=length;
700 cap=destCapacity-length;
704 p=dest+length;
727 length+=len+sepLen;
730 if (length!=restPos) {
731 length-=sepLen;
733 restLen=length-restPos;
750 if(length+padLen <= destCapacity) {
751 p=dest+length;
758 length+=padLen;
762 length=0;
763 } else if(length>0) {
764 /* true length is the length of just the component we got. */
765 length=haveLang?langLen:restLen;
767 if (sub0Pos+length<=destCapacity) {
770 u_memmove(dest, dest+(haveLang?langPos:restPos), length);
785 return u_terminateUChars(dest, destCapacity, length, pErrorCode);
883 if(keywordValue.length() <= destCapacity){
884 u_charsToUChars(keywordValue.data(), dest, keywordValue.length());
885 return u_terminateUChars(dest, destCapacity, keywordValue.length(), status);
888 return keywordValue.length();