Home | History | Annotate | Download | only in toolutil

Lines Matching refs:targetCapacity

382 typedef int32_t U_CALLCONV USystemParameterCallback(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status);
393 paramEmpty(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) {
395 return u_terminateChars(target, targetCapacity, 0, status);
399 paramStatic(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) {
400 if(param->paramStr==NULL) return paramEmpty(param,target,targetCapacity,status);
404 uprv_strncpy(target,param->paramStr,uprv_min(len,targetCapacity));
406 return u_terminateChars(target, targetCapacity, len, status);
411 static int32_t stringToStringBuffer(char *target, int32_t targetCapacity, const char *str, UErrorCode *status) {
417 uprv_strncpy(target,str,uprv_min(len,targetCapacity));
423 uprv_strncpy(target,s,uprv_min(len,targetCapacity));
426 return u_terminateChars(target, targetCapacity, len, status);
429 static int32_t integerToStringBuffer(char *target, int32_t targetCapacity, int32_t n, int32_t radix, UErrorCode *status) {
433 return stringToStringBuffer(target,targetCapacity,str,status);
437 paramInteger(const USystemParams *param, char *target, int32_t targetCapacity, UErrorCode *status) {
440 return integerToStringBuffer(target,targetCapacity,param->paramInt, 10,status);
442 return integerToStringBuffer(target,targetCapacity,param->paramInt, 16,status);
444 return integerToStringBuffer(target,targetCapacity,param->paramInt, 8,status);
446 return integerToStringBuffer(target,targetCapacity,param->paramInt, 2,status);
455 paramCldrVersion(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) {
463 return stringToStringBuffer(target,targetCapacity,str,status);
472 paramTimezoneDefault(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) {
481 return stringToStringBuffer(target,targetCapacity, buf2,status);
489 paramLocaleDefaultBcp47(const USystemParams * /* param */, char *target, int32_t targetCapacity, UErrorCode *status) {
492 return uloc_toLanguageTag(def,target,targetCapacity,FALSE,status);
498 func(const USystemParams *, char *target, int32_t targetCapacity, UErrorCode *status) \
499 { return stringToStringBuffer(target,targetCapacity