Lines Matching defs:posixID
51 const char * const posixID;
74 #define ILCID_POSIX_ELEMENT_ARRAY(hostID, languageID, posixID) \
77 {hostID, #posixID}, \
81 Create the map for the posixID. This macro supposes that the language string
734 * @param posixid the Posix style locale id.
740 getHostID(const ILcidPosixMap *this_0, const char* posixID, UErrorCode* status)
744 int32_t posixIDlen = (int32_t)uprv_strlen(posixID);
748 int32_t sameChars = idCmp(posixID, this_0->regionMaps[idx].posixID);
749 if (sameChars > bestIdxDiff && this_0->regionMaps[idx].posixID[sameChars] == 0) {
760 if ((posixID[bestIdxDiff] == '_' || posixID[bestIdxDiff] == '@')
761 && this_0->regionMaps[bestIdx].posixID[bestIdxDiff] == 0)
780 return this_0->regionMaps[i].posixID;
786 return this_0->regionMaps[0].posixID;
828 uprv_convertToLCID(const char *langID, const char* posixID, UErrorCode* status)
843 if (!langID || !posixID || uprv_strlen(langID) < 2 || uprv_strlen(posixID) < 2) {
856 compVal = uprv_strcmp(langID, gPosixIDmap[mid].regionMaps->posixID);
864 return getHostID(&gPosixIDmap[mid], posixID, status);
870 * Sometimes we can't do a binary search on posixID because some LCIDs
875 value = getHostID(&gPosixIDmap[idx], posixID, &myStatus);