Case Conversion
Text Case Conversion
Transforming text between uppercase, lowercase, title case, sentence case, or camelCase formats.
Detalhe técnico
Case Conversion transformation follows Unicode's case-mapping rules, which are more complex than ASCII uppercasing. The German eszett (ß) uppercases to 'SS' (one-to-many mapping). Turkish has dotted and dotless I variants. Title case must handle articles and prepositions differently across languages. Unicode provides three case-mapping tables: simple (1:1 character), full (1:many), and language-specific (locale-dependent) — all defined in UnicodeData.txt and SpecialCasing.txt.
Exemplo
```javascript const text = 'hello world example'; text.toUpperCase(); // 'HELLO WORLD EXAMPLE' text.toLowerCase(); // 'hello world example' // Title Case (capitalize each word) text.replace(/\b\w/g, c => c.toUpperCase()); // → 'Hello World Example' // camelCase text.replace(/\s+(\w)/g, (_, c) => c.toUpperCase()); // → 'helloWorldExample' ```