Lines Matching refs:gMainTable

199 static UConverterAlias gMainTable;  variable
201 #define GET_STRING(idx) (const char *)(gMainTable.stringTable + (idx))
202 #define GET_NORMALIZED_STRING(idx) (const char *)(gMainTable.normalizedStringTable + (idx))
227 uprv_memset(&gMainTable, 0, sizeof(gMainTable)); in ucnv_io_cleanup()
258 gMainTable.converterListSize = sectionSizes[1]; in initAliasData()
259 gMainTable.tagListSize = sectionSizes[2]; in initAliasData()
260 gMainTable.aliasListSize = sectionSizes[3]; in initAliasData()
261 gMainTable.untaggedConvArraySize = sectionSizes[4]; in initAliasData()
262 gMainTable.taggedAliasArraySize = sectionSizes[5]; in initAliasData()
263 gMainTable.taggedAliasListsSize = sectionSizes[6]; in initAliasData()
264 gMainTable.optionTableSize = sectionSizes[7]; in initAliasData()
265 gMainTable.stringTableSize = sectionSizes[8]; in initAliasData()
268 gMainTable.normalizedStringTableSize = sectionSizes[9]; in initAliasData()
272 gMainTable.converterList = table + currOffset; in initAliasData()
274 currOffset += gMainTable.converterListSize; in initAliasData()
275 gMainTable.tagList = table + currOffset; in initAliasData()
277 currOffset += gMainTable.tagListSize; in initAliasData()
278 gMainTable.aliasList = table + currOffset; in initAliasData()
280 currOffset += gMainTable.aliasListSize; in initAliasData()
281 gMainTable.untaggedConvArray = table + currOffset; in initAliasData()
283 currOffset += gMainTable.untaggedConvArraySize; in initAliasData()
284 gMainTable.taggedAliasArray = table + currOffset; in initAliasData()
287 currOffset += gMainTable.taggedAliasArraySize; in initAliasData()
288 gMainTable.taggedAliasLists = table + currOffset; in initAliasData()
290 currOffset += gMainTable.taggedAliasListsSize; in initAliasData()
291 if (gMainTable.optionTableSize > 0 in initAliasData()
295 gMainTable.optionTable = (const UConverterAliasOptions *)(table + currOffset); in initAliasData()
300 gMainTable.optionTable = &defaultTableOptions; in initAliasData()
303 currOffset += gMainTable.optionTableSize; in initAliasData()
304 gMainTable.stringTable = table + currOffset; in initAliasData()
306 currOffset += gMainTable.stringTableSize; in initAliasData()
307gMainTable.normalizedStringTable = ((gMainTable.optionTable->stringNormalizationType == UCNV_IO_UN… in initAliasData()
308 ? gMainTable.stringTable : (table + currOffset)); in initAliasData()
328 if (gMainTable.tagList) { in getTagNumber()
330 for (tagNum = 0; tagNum < gMainTable.tagListSize; tagNum++) { in getTagNumber()
331 if (!uprv_stricmp(GET_STRING(gMainTable.tagList[tagNum]), tagname)) { in getTagNumber()
556 int isUnnormalized = (gMainTable.optionTable->stringNormalizationType == UCNV_IO_UNNORMALIZED); in findConverter()
572 limit = gMainTable.untaggedConvArraySize; in findConverter()
583 result = ucnv_compareNames(alias, GET_STRING(gMainTable.aliasList[mid])); in findConverter()
586 result = uprv_strcmp(alias, GET_NORMALIZED_STRING(gMainTable.aliasList[mid])); in findConverter()
598 if (gMainTable.untaggedConvArray[mid] & UCNV_AMBIGUOUS_ALIAS_MAP_BIT) { in findConverter()
604 UBool containsCnvOptionInfo = (UBool)gMainTable.optionTable->containsCnvOptionInfo; in findConverter()
606 && ((gMainTable.untaggedConvArray[mid] & UCNV_CONTAINS_OPTION_BIT) != 0)) in findConverter()
609 return gMainTable.untaggedConvArray[mid] & UCNV_CONVERTER_INDEX_MASK; in findConverter()
624 uint32_t listCount = gMainTable.taggedAliasLists[listOffset]; in isAliasInList()
626 const uint16_t *currList = gMainTable.taggedAliasLists + listOffset + 1; in isAliasInList()
658 …if (tagNum < (gMainTable.tagListSize - UCNV_NUM_HIDDEN_TAGS) && convNum < gMainTable.converterList… in findTaggedAliasListsOffset()
659 listOffset = gMainTable.taggedAliasArray[tagNum*gMainTable.converterListSize + convNum]; in findTaggedAliasListsOffset()
660 if (listOffset && gMainTable.taggedAliasLists[listOffset + 1]) { in findTaggedAliasListsOffset()
669 for (idx = 0; idx < gMainTable.taggedAliasArraySize; idx++) { in findTaggedAliasListsOffset()
670 listOffset = gMainTable.taggedAliasArray[idx]; in findTaggedAliasListsOffset()
672 uint32_t currTagNum = idx/gMainTable.converterListSize; in findTaggedAliasListsOffset()
673 uint32_t currConvNum = (idx - currTagNum*gMainTable.converterListSize); in findTaggedAliasListsOffset()
674 …uint32_t tempListOffset = gMainTable.taggedAliasArray[tagNum*gMainTable.converterListSize + currCo… in findTaggedAliasListsOffset()
675 if (tempListOffset && gMainTable.taggedAliasLists[tempListOffset + 1]) { in findTaggedAliasListsOffset()
709 …if (tagNum < (gMainTable.tagListSize - UCNV_NUM_HIDDEN_TAGS) && convNum < gMainTable.converterList… in findTaggedConverterNum()
710 listOffset = gMainTable.taggedAliasArray[tagNum*gMainTable.converterListSize + convNum]; in findTaggedConverterNum()
720 uint32_t convStart = (tagNum)*gMainTable.converterListSize; in findTaggedConverterNum()
721 uint32_t convLimit = (tagNum+1)*gMainTable.converterListSize; in findTaggedConverterNum()
723 listOffset = gMainTable.taggedAliasArray[idx]; in findTaggedConverterNum()
756 if (convNum < gMainTable.converterListSize) { in ucnv_io_getConverterName()
757 return GET_STRING(gMainTable.converterList[convNum]); in ucnv_io_getConverterName()
778 value = gMainTable.taggedAliasLists[listOffset]; in ucnv_io_countStandardAliases()
792 uint32_t listCount = gMainTable.taggedAliasLists[listOffset]; in ucnv_io_nextStandardAliases()
793 const uint16_t *currList = gMainTable.taggedAliasLists + listOffset + 1; in ucnv_io_nextStandardAliases()
846 if (listOffset < gMainTable.taggedAliasListsSize) { in ucnv_openStandardNames()
874 if (convNum < gMainTable.converterListSize) { in ucnv_io_countAliases()
876 …int32_t listOffset = gMainTable.taggedAliasArray[(gMainTable.tagListSize - 1)*gMainTable.converter… in ucnv_io_countAliases()
879 return gMainTable.taggedAliasLists[listOffset]; in ucnv_io_countAliases()
893 if (convNum < gMainTable.converterListSize) { in ucnv_io_getAliases()
895 …int32_t listOffset = gMainTable.taggedAliasArray[(gMainTable.tagListSize - 1)*gMainTable.converter… in ucnv_io_getAliases()
898 uint32_t listCount = gMainTable.taggedAliasLists[listOffset]; in ucnv_io_getAliases()
900 const uint16_t *currList = gMainTable.taggedAliasLists + listOffset + 1; in ucnv_io_getAliases()
917 if (convNum < gMainTable.converterListSize) { in ucnv_io_getAlias()
919 …int32_t listOffset = gMainTable.taggedAliasArray[(gMainTable.tagListSize - 1)*gMainTable.converter… in ucnv_io_getAlias()
922 uint32_t listCount = gMainTable.taggedAliasLists[listOffset]; in ucnv_io_getAlias()
924 const uint16_t *currList = gMainTable.taggedAliasLists + listOffset + 1; in ucnv_io_getAlias()
942 return (uint16_t)(gMainTable.tagListSize - UCNV_NUM_HIDDEN_TAGS); in ucnv_io_countStandards()
951 if (n < gMainTable.tagListSize - UCNV_NUM_HIDDEN_TAGS) { in ucnv_getStandard()
952 return GET_STRING(gMainTable.tagList[n]); in ucnv_getStandard()
965 if (0 < listOffset && listOffset < gMainTable.taggedAliasListsSize) { in ucnv_getStandardName()
966 const uint16_t *currList = gMainTable.taggedAliasLists + listOffset + 1; in ucnv_getStandardName()
1011 if (convNum < gMainTable.converterListSize) { in ucnv_getCanonicalName()
1012 return GET_STRING(gMainTable.converterList[convNum]); in ucnv_getCanonicalName()
1024 return gMainTable.converterListSize; in ucnv_io_countAllConverters()
1034 if (*myContext < gMainTable.converterListSize) { in ucnv_io_nextAllConverters()
1035 const char *myStr = GET_STRING(gMainTable.converterList[(*myContext)++]); in ucnv_io_nextAllConverters()
1090 return (uint16_t)gMainTable.converterListSize; in ucnv_io_countKnownConverters()