74 references to Globalization
System.Private.CoreLib (74)
src\libraries\Common\src\Interop\Interop.Utils.cs (5)
15SpanFunc<char, TArg1, TArg2, TArg3, Globalization.ResultCode> interopCall, 23Globalization.ResultCode resultCode = interopCall(buffer, arg1, arg2, arg3); 25if (resultCode == Globalization.ResultCode.Success) 31if (resultCode == Globalization.ResultCode.InsufficientBuffer) 35if (interopCall(buffer, arg1, arg2, arg3) == Globalization.ResultCode.Success)
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (3)
101count = Interop.Globalization.GetCalendars(localeName, calendars, calendars.Length); 131return Interop.Globalization.GetCalendarInfo(locale, id, type, bufferPtr, buffer.Length); 435return Interop.Globalization.EnumCalendarInfo(&EnumCalendarInfoCallback, localeName, calendarId, dataType, (IntPtr)callbackContext);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (25)
62return Interop.Globalization.CompareString(_sortHandle, pString1, string1.Length, pString2, string2.Length, options); 92return Interop.Globalization.IndexOf(_sortHandle, pTarget, target.Length, pSource, source.Length, options, matchLengthPtr); 94return Interop.Globalization.LastIndexOf(_sortHandle, pTarget, target.Length, pSource, source.Length, options, matchLengthPtr); 213return Interop.Globalization.IndexOf(_sortHandle, b, target.Length, a, source.Length, options, matchLengthPtr); 215return Interop.Globalization.LastIndexOf(_sortHandle, b, target.Length, a, source.Length, options, matchLengthPtr); 307return Interop.Globalization.IndexOf(_sortHandle, b, target.Length, a, source.Length, options, matchLengthPtr); 309return Interop.Globalization.LastIndexOf(_sortHandle, b, target.Length, a, source.Length, options, matchLengthPtr); 338return Interop.Globalization.StartsWith(_sortHandle, pPrefix, prefix.Length, pSource, source.Length, options, matchLengthPtr); 421return Interop.Globalization.StartsWith(_sortHandle, bp, prefix.Length, ap, source.Length, options, matchLengthPtr); 493return Interop.Globalization.StartsWith(_sortHandle, bp, prefix.Length, ap, source.Length, options, matchLengthPtr); 522return Interop.Globalization.EndsWith(_sortHandle, pSuffix, suffix.Length, pSource, source.Length, options, matchLengthPtr); 606return Interop.Globalization.EndsWith(_sortHandle, bp, suffix.Length, ap, source.Length, options, matchLengthPtr); 678return Interop.Globalization.EndsWith(_sortHandle, bp, suffix.Length, ap, source.Length, options, matchLengthPtr); 713sortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, null, 0, options); 730if (Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pSortKey, sortKeyLength, options) != sortKeyLength) 769actualSortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pDest, destination.Length, options); 815return Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, null, 0, options); 882sortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pSortKey, sortKey.Length, options); 905sortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pSortKey, sortKey.Length, options); 949int sortVersion = Interop.Globalization.GetSortVersion(_sortHandle); 969Interop.Globalization.ResultCode resultCode = Interop.Globalization.GetSortHandle(sortName, out result); 971if (resultCode == Interop.Globalization.ResultCode.OutOfMemory) 973else if (resultCode != Interop.Globalization.ResultCode.Success) 982Interop.Globalization.CloseSortHandle(result);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (9)
176if (!Interop.Globalization.GetLocaleName(localeName, buffer, ICU_ULOC_FULLNAME_CAPACITY)) 200if (!Interop.Globalization.GetDefaultLocaleName(buffer, ICU_ULOC_FULLNAME_CAPACITY)) 242bool result = Interop.Globalization.GetLocaleInfoString(localeName, (uint)type, buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY, uiCultureName); 267bool result = Interop.Globalization.GetLocaleInfoInt(_sWindowsName, (uint)type, ref value); 284bool result = Interop.Globalization.GetLocaleInfoGroupingSizes(_sWindowsName, (uint)type, ref primaryGroupingSize, ref secondaryGroupingSize); 321bool result = Interop.Globalization.GetLocaleTimeFormat(_sWindowsName, shortFormat, buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY); 361return Interop.Globalization.IsPredefinedLocale(name); 537bufferLength = Interop.Globalization.GetLocales(null, 0); 555bufferLength = Interop.Globalization.GetLocales(chars, bufferLength);
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.LoadICU.Unix.cs (1)
8private static int LoadICU() => Interop.Globalization.LoadICU();
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.Unix.cs (1)
79Interop.Globalization.InitICUFunctions(icuucLib, icuinLib, version, suffix);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (7)
27actualLength = Interop.Globalization.ToAscii(flags, unicode, count, outputStack, estimatedLength); 35actualLength = Interop.Globalization.ToAscii(flags, unicode, count, null, 0); 45actualLength = Interop.Globalization.ToAscii(flags, unicode, count, pOutputHeap, actualLength); 85int realLen = Interop.Globalization.ToUnicode(flags, ascii, count, output, outputLength); 112(AllowUnassigned ? Interop.Globalization.AllowUnassigned : 0) | 113(UseStd3AsciiRules ? Interop.Globalization.UseStd3AsciiRules : 0); 127if ((flags & Interop.Globalization.UseStd3AsciiRules) == 0)
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (2)
47latestEra = Interop.Globalization.GetLatestJapaneseEra(); 155result = Interop.Globalization.GetJapaneseEraStartDate(era, out startYear, out startMonth, out startDay);
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (4)
35ret = Interop.Globalization.IsNormalized(normalizationForm, pInput, source.Length); 78realLen = Interop.Globalization.NormalizeString(normalizationForm, pInput, strInput.Length, pDest, buffer.Length); 149realLen = Interop.Globalization.NormalizeString(normalizationForm, pInput, source.Length, pDest, destination.Length); 188realLen = Interop.Globalization.NormalizeString(normalizationForm, pInput, source.Length, null, 0);
src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (1)
437Interop.Globalization.InitOrdinalCasingPage(pageNumber, pTable);
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.Icu.cs (3)
26Interop.Globalization.ChangeCaseInvariant(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper); 36Interop.Globalization.ChangeCaseTurkish(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper); 40Interop.Globalization.ChangeCase(src, srcLen, dstBuffer, dstBufferCapacity, bToUpper);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.cs (2)
27int length = Interop.Globalization.IanaIdToWindowsId(ianaId, buffer, 100); 92int length = Interop.Globalization.WindowsIdToIanaId(windowsId, regionPtr, buffer, 100);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (11)
47GetDisplayName(UtcId, Interop.Globalization.TimeZoneDisplayNameType.Standard, uiCulture.Name, ref standardDisplayName); 92GetDisplayName(timeZoneId, Interop.Globalization.TimeZoneDisplayNameType.Standard, UICulture.Name, ref displayName); 97GetDisplayName(timeZoneId, Interop.Globalization.TimeZoneDisplayNameType.DaylightSavings, UICulture.Name, ref displayName); 101private static unsafe void GetDisplayName(string timeZoneId, Interop.Globalization.TimeZoneDisplayNameType nameType, string uiCulture, ref string? displayName) 118return Interop.Globalization.GetTimeZoneDisplayName(locale, id, type, bufferPtr, buffer.Length); 138return Interop.Globalization.GetTimeZoneDisplayName(locale, id, type, bufferPtr, buffer.Length); 177GetDisplayName(timeZoneId, Interop.Globalization.TimeZoneDisplayNameType.Generic, uiCulture.Name, ref genericName); 186GetDisplayName(timeZoneId, Interop.Globalization.TimeZoneDisplayNameType.GenericLocation, uiCulture.Name, ref genericLocationName); 193GetDisplayName(GmtId, Interop.Globalization.TimeZoneDisplayNameType.GenericLocation, uiCulture.Name, ref gmtLocationName); 203GetDisplayName(GmtId, Interop.Globalization.TimeZoneDisplayNameType.Generic, uiCulture.Name, ref gmtGenericName); 278GetDisplayName(timeZoneId, Interop.Globalization.TimeZoneDisplayNameType.ExemplarCity, uiCultureName, ref exemplarCityName);