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