From 2d691ab049f05d73b97f769332588c563d3ce1d1 Mon Sep 17 00:00:00 2001
From: Reinhard Pointner matchAll(pattern)
Get a list of substrings matching the given pattern or break.
- space(replacement)
Replace all spaces (e.g. "Doctor Who" -> "Doctor_Who").
+ space(replacement)
Replace all spaces (e.g. "Doctor Who" ➔ "Doctor_Who").
- upperInitial()
Upper-case all initials (e.g. "The Day a new Demon was born" -> "The Day A New Demon Was Born").
+ colon(replacement)
Replace all colons (e.g. "Sissi: The Young Empress" ➔ "Sissi - The Young Empress").
- lowerTrail()
Lower-case all letters that are not initials (e.g. "Gundam SEED" -> "Gundam Seed").
+ slash(replacement)
Replace all slashes (e.g. "V_MPEG4/ISO/AVC" ➔ "V_MPEG4.ISO.AVC").
- acronym()
Get acronym, i.e. first letter of each word. (e.g. "Deep Space 9" -> "DS9").
+ upperInitial()
Upper-case all initials (e.g. "The Day a new Demon was born" ➔ "The Day A New Demon Was Born").
+
+ lowerTrail()
Lower-case all letters that are not initials (e.g. "Gundam SEED" ➔ "Gundam Seed").
+
+ acronym()
Get acronym, i.e. first letter of each word. (e.g. "Deep Space 9" ➔ "DS9").
+
+ roman()
Replace numbers 1..12 with roman numerals (e.g. "Star Wars: Episode 4" ➔ "Star Wars: Episode IV").
before(pattern)
Get the substring before the given pattern or the original value.
@@ -430,16 +439,16 @@
replaceAll(pattern, replacement = "")
Replace or remove all occurrences of the pattern.
- replaceTrailingBrackets(replacement = "")
Replace trailing parenthesis including any leading whitespace (e.g. "The IT Crowd (UK)" -> "The IT Crowd").
+ replaceTrailingBrackets(replacement = "")
Replace trailing parenthesis including any leading whitespace (e.g. "The IT Crowd (UK)" ➔ "The IT Crowd").
- replacePart(replacement = "")
Replace part identifier (e.g. "Today Is the Day (1)" -> "Today Is the Day, Part 1").
+ replacePart(replacement = "")
Replace part identifier (e.g. "Today Is the Day (1)" ➔ "Today Is the Day, Part 1").
- ascii()
Convert Unicode to ASCII. (e.g. "Österreich" -> "Osterreich" or "カタカナ" -> "katakana").
+ ascii()
Convert Unicode to ASCII. (e.g. "Österreich" ➔ "Osterreich" or "カタカナ" ➔ "katakana").
- transliterate(identifier)
Apply any ICU script transliteration. e.g. "中国".transliterate("han-latin") -> "zhōng guó".
+ transliterate(identifier)
Apply any ICU script transliteration. e.g. "中国".transliterate("han-latin") ➔ "zhōng guó".