int32_t subtagLen;
int32_t extlangIdx;
ExtensionListEntry *pExtension;
- AttributeListEntry *pAttribute;
char *pExtValueSubtag, *pExtValueSubtagEnd;
int32_t i;
- UBool isLDMLExtension, privateuseVar = FALSE;
+ UBool privateuseVar = FALSE;
int32_t grandfatheredLen = 0;
if (parsedLen != NULL) {
pExtension = NULL;
pExtValueSubtag = NULL;
pExtValueSubtagEnd = NULL;
- pAttribute = NULL;
- isLDMLExtension = FALSE;
while (pNext) {
char *pSep;
}
}
- isLDMLExtension = (uprv_tolower(*pSubtag) == LDMLEXT);
-
/* create a new extension */
pExtension = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry));
if (pExtension == NULL) {
#endif
UBool fastParseOk = false; /* TRUE iff fast parse is OK */
- UBool fastParseHadDecimal = FALSE; /* true if fast parse saw a decimal point. */
+ // UBool fastParseHadDecimal = FALSE; /* true if fast parse saw a decimal point. */
if(!currencyParsing &&
} else if(ch == decimalChar) {
parsedNum.append((char)('.'), err);
decimalChar=0; // no more decimals.
- fastParseHadDecimal=TRUE;
+ // fastParseHadDecimal=TRUE;
} else if(intOnly && !u_isdigit(ch)) {
break; // hit a non-integer. (fall through if integer, to slow parse)
} else {
// u_strToUTF8() in preflight mode is an easy way to do it.
U_ASSERT(position16 <= len16);
u_strToUTF8(NULL, 0, position, text16, position16, status);
- if (position > 0) {
+ if (position != NULL && *position > 0) {
// position is the required buffer length from u_strToUTF8, which includes
// space for a terminating NULL, which we don't want, hence the -1.
*position -= 1;