michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include michael@0: michael@0: namespace mozilla { michael@0: namespace unicode { michael@0: michael@0: // Multi-character mappings (from SpecialCasing.txt) map a single Unicode michael@0: // value to a sequence of 2 or 3 Unicode characters. There are currently none michael@0: // defined outside the BMP, so we can use char16_t here. Unused trailing michael@0: // positions in mMappedChars are set to 0. michael@0: struct MultiCharMapping { michael@0: char16_t mOriginalChar; michael@0: char16_t mMappedChars[3]; michael@0: }; michael@0: michael@0: // Return a pointer to the special case mapping for the given character; michael@0: // returns nullptr if no such mapping is defined. michael@0: const MultiCharMapping* SpecialUpper(uint32_t aCh); michael@0: const MultiCharMapping* SpecialLower(uint32_t aCh); michael@0: const MultiCharMapping* SpecialTitle(uint32_t aCh); michael@0: michael@0: } // namespace unicode michael@0: } // namespace mozilla