Vincent Povirk madewokherd@gmail.com writes:
- case LOCALE_ICALENDARTYPE: *cache_index = 0; return iCalendarTypeW;
- case LOCALE_ICURRDIGITS: *cache_index = 1; return iCurrDigitsW;
- case LOCALE_ICURRENCY: *cache_index = 2; return iCurrencyW;
- case LOCALE_IDIGITS: *cache_index = 3; return iDigitsW;
- case LOCALE_IFIRSTDAYOFWEEK: *cache_index = 4; return iFirstDayOfWeekW;
- case LOCALE_IFIRSTWEEKOFYEAR: *cache_index = 5; return iFirstWeekOfYearW;
- case LOCALE_ILZERO: *cache_index = 6; return iLZeroW;
- case LOCALE_IMEASURE: *cache_index = 7; return iMeasureW;
- case LOCALE_INEGCURR: *cache_index = 8; return iNegCurrW;
- case LOCALE_INEGNUMBER: *cache_index = 9; return iNegNumberW;
- case LOCALE_IPAPERSIZE: *cache_index = 10; return iPaperSizeW;
- case LOCALE_ITIME: *cache_index = 11; return iTimeW;
- case LOCALE_S1159: *cache_index = 12; return s1159W;
- case LOCALE_S2359: *cache_index = 13; return s2359W;
- case LOCALE_SCURRENCY: *cache_index = 14; return sCurrencyW;
- case LOCALE_SDATE: *cache_index = 15; return sDateW;
- case LOCALE_SDECIMAL: *cache_index = 16; return sDecimalW;
- case LOCALE_SGROUPING: *cache_index = 17; return sGroupingW;
- case LOCALE_SLIST: *cache_index = 18; return sListW;
- case LOCALE_SLONGDATE: *cache_index = 19; return sLongDateW;
- case LOCALE_SMONDECIMALSEP: *cache_index = 20; return sMonDecimalSepW;
- case LOCALE_SMONGROUPING: *cache_index = 21; return sMonGroupingW;
- case LOCALE_SMONTHOUSANDSEP: *cache_index = 22; return sMonThousandSepW;
- case LOCALE_SNEGATIVESIGN: *cache_index = 23; return sNegativeSignW;
- case LOCALE_SPOSITIVESIGN: *cache_index = 24; return sPositiveSignW;
- case LOCALE_SSHORTDATE: *cache_index = 25; return sShortDateW;
- case LOCALE_STHOUSAND: *cache_index = 26; return sThousandW;
- case LOCALE_STIME: *cache_index = 27; return sTimeW;
- case LOCALE_STIMEFORMAT: *cache_index = 28; return sTimeFormatW;
- case LOCALE_SYEARMONTH: *cache_index = 29; return sYearMonthW;
You clearly want some sort of array here.