Lines Matching refs:code
154 r->code = result.getLong(); // Convert string to number
155 uhash_iput(numericCodeMap,r->code,(void *)r,&status);
158 r->code = -1;
177 if ( aliasFromRegion == NULL ) { // Deprecated region code not in the master codes list - so need to create a deprecated region for it.
186 aliasFromRegion->code = result.getLong(); // Convert string to number
187 uhash_iput(numericCodeMap,aliasFromRegion->code,(void *)aliasFromRegion,&status);
189 aliasFromRegion->code = -1;
216 // Process the code mappings - This will allow us to assign numeric codes to most of the territories.
230 r->code = result.getLong(); // Convert string to number
231 uhash_iput(numericCodeMap,r->code,(void *)r,&status);
270 // Special case: The region code "QO" (Outlying Oceania) is a subcontinent code added by CLDR
271 // even though it looks like a territory code. Need to handle it here.
363 : code(-1),
397 * Returns a pointer to a Region using the given region code. The region code can be either 2-letter ISO code,
398 * 3-letter ISO code, UNM.49 numeric code, or other valid Unicode Region Code as defined by the LDML specification.
400 * If the region code is NULL or not recognized, the appropriate error code will be set ( U_ILLEGAL_ARGUMENT_ERROR )
424 if ( !r ) { // Unknown region code
442 * Returns a pointer to a Region using the given numeric region code. If the numeric region code is not recognized,
443 * the appropriate error code will be set ( U_ILLEGAL_ARGUMENT_ERROR ).
446 Region::getInstance (int32_t code, UErrorCode &status) {
455 Region *r = (Region *)uhash_iget(numericCodeMap,code);
464 df->format(code,id);
500 * Returns a pointer to the region that contains this region. Returns NULL if this region is code "001" (World)
625 * Return this region's canonical region code.
634 return code;