Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/design/features/hybrid-globalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ Using `IgnoreNonSpace` for these two with `HybridGlobalization` off, also return
new CultureInfo("de-DE").CompareInfo.IndexOf("strasse", "stra\u00DFe", 0, CompareOptions.IgnoreNonSpace); // 0 or -1
```

**Normalization**

In HybridGlobalization all normalization types are available:
- `FormC`,
- `FormD`,
- `FormKC`,
- `FormKD`.

This means, that `FormKC` and `FormKD` do not throw `PlatfromNotSupportedException`, as it happens in non-hybrid mode on Browser.

### OSX

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ private static void ValidateArguments(string strInput, NormalizationForm normali
{
Debug.Assert(strInput != null);


if (OperatingSystem.IsBrowser() && (normalizationForm == NormalizationForm.FormKC || normalizationForm == NormalizationForm.FormKD))
bool notSupported = OperatingSystem.IsBrowser() && (normalizationForm == NormalizationForm.FormKC || normalizationForm == NormalizationForm.FormKD);
#if TARGET_BROWSER
if (!GlobalizationMode.Hybrid && notSupported)
#else
if (notSupported)
#endif
{
// Browser's ICU doesn't contain data needed for FormKC and FormKD
throw new PlatformNotSupportedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ public enum NormalizationForm
{
FormC = 1,
FormD = 2,
[UnsupportedOSPlatform("browser")]
FormKC = 5,
[UnsupportedOSPlatform("browser")]
FormKD = 6
}
}