# Add \`os.windows.nls.upcaseW\`, a cross-platform implementation of \`RtlUpcaseUnicodeChar\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/cfcf9cd9b7acd1dec2cc5c079ccac373bd8b392c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: cfcf9cd9b7acd1dec2cc5c079ccac373bd8b392c

Requested commit: cfcf9cd9b7acd1dec2cc5c079ccac373bd8b392c

Commit: cfcf9cd9b7acd1dec2cc5c079ccac373bd8b392c

Tree: 999bf9e6ba08678fdb676cc5ee206cd83f21785f

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Add `os.windows.nls.upcaseW`, a cross-platform implementation of `RtlUpcaseUnicodeChar`

This allows doing Windows-style case insensitive comparisons from any target, but means that it will need to include its own copy of the uppercase data table (5,088 bytes) to do so.

When targeting Windows, the ntdll functions are used instead to avoid including a redundant copy of the uppercase data in the resulting binary.

```

## Parents

- [0a6cd257b9c8a9093b966e3851dc8261e19b531a](https://git.cafe/gitcafe/zig/commit/0a6cd257b9c8a9093b966e3851dc8261e19b531a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/cfcf9cd9b7acd1dec2cc5c079ccac373bd8b392c?format=markdown)
