diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-11-29 17:44:26 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-11-29 21:37:25 +0100 |
commit | 19ea4aaddca56b1642d5db21edfe5503c93c93b7 (patch) | |
tree | 9574d1497405dac04c4d7edd9cd855ccd95cd536 /i18nutil | |
parent | 3275f57221904426e5c136f5596a83050f8585a4 (diff) |
Extended loplugin:ostr: i18nutil
Change-Id: I9d7ab34967229087e4fa52b6714b6b75d6c4d196
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160118
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 386 |
1 files changed, 193 insertions, 193 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index ae7b4c512aca..e98afeeff3b8 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -435,594 +435,594 @@ OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript) { case USCRIPT_CODE_LIMIT: case USCRIPT_INVALID_CODE: - sRet = "zxx"; + sRet = "zxx"_ostr; break; case USCRIPT_COMMON: case USCRIPT_INHERITED: - sRet = "und"; + sRet = "und"_ostr; break; case USCRIPT_MATHEMATICAL_NOTATION: case USCRIPT_SYMBOLS: - sRet = "zxx"; + sRet = "zxx"_ostr; break; case USCRIPT_UNWRITTEN_LANGUAGES: case USCRIPT_UNKNOWN: - sRet = "und"; + sRet = "und"_ostr; break; case USCRIPT_ARABIC: - sRet = "ar"; + sRet = "ar"_ostr; break; case USCRIPT_ARMENIAN: - sRet = "hy"; + sRet = "hy"_ostr; break; case USCRIPT_BENGALI: - sRet = "bn"; + sRet = "bn"_ostr; break; case USCRIPT_BOPOMOFO: - sRet = "zh"; + sRet = "zh"_ostr; break; case USCRIPT_CHEROKEE: - sRet = "chr"; + sRet = "chr"_ostr; break; case USCRIPT_COPTIC: - sRet = "cop"; + sRet = "cop"_ostr; break; case USCRIPT_CYRILLIC: - sRet = "ru"; + sRet = "ru"_ostr; break; case USCRIPT_DESERET: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_DEVANAGARI: - sRet = "hi"; + sRet = "hi"_ostr; break; case USCRIPT_ETHIOPIC: - sRet = "am"; + sRet = "am"_ostr; break; case USCRIPT_GEORGIAN: - sRet = "ka"; + sRet = "ka"_ostr; break; case USCRIPT_GOTHIC: - sRet = "got"; + sRet = "got"_ostr; break; case USCRIPT_GREEK: - sRet = "el"; + sRet = "el"_ostr; break; case USCRIPT_GUJARATI: - sRet = "gu"; + sRet = "gu"_ostr; break; case USCRIPT_GURMUKHI: - sRet = "pa"; + sRet = "pa"_ostr; break; case USCRIPT_HAN: - sRet = "zh"; + sRet = "zh"_ostr; break; case USCRIPT_HANGUL: - sRet = "ko"; + sRet = "ko"_ostr; break; case USCRIPT_HEBREW: - sRet = "hr"; + sRet = "hr"_ostr; break; case USCRIPT_HIRAGANA: - sRet = "ja"; + sRet = "ja"_ostr; break; case USCRIPT_KANNADA: - sRet = "kn"; + sRet = "kn"_ostr; break; case USCRIPT_KATAKANA: - sRet = "ja"; + sRet = "ja"_ostr; break; case USCRIPT_KHMER: - sRet = "km"; + sRet = "km"_ostr; break; case USCRIPT_LAO: - sRet = "lo"; + sRet = "lo"_ostr; break; case USCRIPT_LATIN: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_MALAYALAM: - sRet = "ml"; + sRet = "ml"_ostr; break; case USCRIPT_MONGOLIAN: - sRet = "mn"; + sRet = "mn"_ostr; break; case USCRIPT_MYANMAR: - sRet = "my"; + sRet = "my"_ostr; break; case USCRIPT_OGHAM: - sRet = "pgl"; + sRet = "pgl"_ostr; break; case USCRIPT_OLD_ITALIC: - sRet = "osc"; + sRet = "osc"_ostr; break; case USCRIPT_ORIYA: - sRet = "or"; + sRet = "or"_ostr; break; case USCRIPT_RUNIC: - sRet = "ang"; + sRet = "ang"_ostr; break; case USCRIPT_SINHALA: - sRet = "si"; + sRet = "si"_ostr; break; case USCRIPT_SYRIAC: - sRet = "syr"; + sRet = "syr"_ostr; break; case USCRIPT_TAMIL: - sRet = "ta"; + sRet = "ta"_ostr; break; case USCRIPT_TELUGU: - sRet = "te"; + sRet = "te"_ostr; break; case USCRIPT_THAANA: - sRet = "dv"; + sRet = "dv"_ostr; break; case USCRIPT_THAI: - sRet = "th"; + sRet = "th"_ostr; break; case USCRIPT_TIBETAN: - sRet = "bo"; + sRet = "bo"_ostr; break; case USCRIPT_CANADIAN_ABORIGINAL: - sRet = "iu"; + sRet = "iu"_ostr; break; case USCRIPT_YI: - sRet = "ii"; + sRet = "ii"_ostr; break; case USCRIPT_TAGALOG: - sRet = "tl"; + sRet = "tl"_ostr; break; case USCRIPT_HANUNOO: - sRet = "hnn"; + sRet = "hnn"_ostr; break; case USCRIPT_BUHID: - sRet = "bku"; + sRet = "bku"_ostr; break; case USCRIPT_TAGBANWA: - sRet = "tbw"; + sRet = "tbw"_ostr; break; case USCRIPT_BRAILLE: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_CYPRIOT: - sRet = "ecy"; + sRet = "ecy"_ostr; break; case USCRIPT_LIMBU: - sRet = "lif"; + sRet = "lif"_ostr; break; case USCRIPT_LINEAR_B: - sRet = "gmy"; + sRet = "gmy"_ostr; break; case USCRIPT_OSMANYA: - sRet = "so"; + sRet = "so"_ostr; break; case USCRIPT_SHAVIAN: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_TAI_LE: - sRet = "tdd"; + sRet = "tdd"_ostr; break; case USCRIPT_UGARITIC: - sRet = "uga"; + sRet = "uga"_ostr; break; case USCRIPT_KATAKANA_OR_HIRAGANA: - sRet = "ja"; + sRet = "ja"_ostr; break; case USCRIPT_BUGINESE: - sRet = "bug"; + sRet = "bug"_ostr; break; case USCRIPT_GLAGOLITIC: - sRet = "ch"; + sRet = "ch"_ostr; break; case USCRIPT_KHAROSHTHI: - sRet = "pra"; + sRet = "pra"_ostr; break; case USCRIPT_SYLOTI_NAGRI: - sRet = "syl"; + sRet = "syl"_ostr; break; case USCRIPT_NEW_TAI_LUE: - sRet = "khb"; + sRet = "khb"_ostr; break; case USCRIPT_TIFINAGH: - sRet = "tmh"; + sRet = "tmh"_ostr; break; case USCRIPT_OLD_PERSIAN: - sRet = "peo"; + sRet = "peo"_ostr; break; case USCRIPT_BALINESE: - sRet = "ban"; + sRet = "ban"_ostr; break; case USCRIPT_BATAK: - sRet = "btk"; + sRet = "btk"_ostr; break; case USCRIPT_BLISSYMBOLS: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_BRAHMI: - sRet = "pra"; + sRet = "pra"_ostr; break; case USCRIPT_CHAM: - sRet = "cja"; + sRet = "cja"_ostr; break; case USCRIPT_CIRTH: - sRet = "sjn"; + sRet = "sjn"_ostr; break; case USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC: - sRet = "cu"; + sRet = "cu"_ostr; break; case USCRIPT_DEMOTIC_EGYPTIAN: case USCRIPT_HIERATIC_EGYPTIAN: case USCRIPT_EGYPTIAN_HIEROGLYPHS: - sRet = "egy"; + sRet = "egy"_ostr; break; case USCRIPT_KHUTSURI: - sRet = "ka"; + sRet = "ka"_ostr; break; case USCRIPT_SIMPLIFIED_HAN: - sRet = "zh"; + sRet = "zh"_ostr; break; case USCRIPT_TRADITIONAL_HAN: - sRet = "zh"; + sRet = "zh"_ostr; break; case USCRIPT_PAHAWH_HMONG: - sRet = "blu"; + sRet = "blu"_ostr; break; case USCRIPT_OLD_HUNGARIAN: - sRet = "ohu"; + sRet = "ohu"_ostr; break; case USCRIPT_HARAPPAN_INDUS: - sRet = "xiv"; + sRet = "xiv"_ostr; break; case USCRIPT_JAVANESE: - sRet = "kaw"; + sRet = "kaw"_ostr; break; case USCRIPT_KAYAH_LI: - sRet = "eky"; + sRet = "eky"_ostr; break; case USCRIPT_LATIN_FRAKTUR: - sRet = "de"; + sRet = "de"_ostr; break; case USCRIPT_LATIN_GAELIC: - sRet = "ga"; + sRet = "ga"_ostr; break; case USCRIPT_LEPCHA: - sRet = "lep"; + sRet = "lep"_ostr; break; case USCRIPT_LINEAR_A: - sRet = "ecr"; + sRet = "ecr"_ostr; break; case USCRIPT_MAYAN_HIEROGLYPHS: - sRet = "myn"; + sRet = "myn"_ostr; break; case USCRIPT_MEROITIC: - sRet = "xmr"; + sRet = "xmr"_ostr; break; case USCRIPT_NKO: - sRet = "nqo"; + sRet = "nqo"_ostr; break; case USCRIPT_ORKHON: - sRet = "otk"; + sRet = "otk"_ostr; break; case USCRIPT_OLD_PERMIC: - sRet = "kv"; + sRet = "kv"_ostr; break; case USCRIPT_PHAGS_PA: - sRet = "xng"; + sRet = "xng"_ostr; break; case USCRIPT_PHOENICIAN: - sRet = "phn"; + sRet = "phn"_ostr; break; case USCRIPT_PHONETIC_POLLARD: - sRet = "hmd"; + sRet = "hmd"_ostr; break; case USCRIPT_RONGORONGO: - sRet = "rap"; + sRet = "rap"_ostr; break; case USCRIPT_SARATI: - sRet = "qya"; + sRet = "qya"_ostr; break; case USCRIPT_ESTRANGELO_SYRIAC: - sRet = "syr"; + sRet = "syr"_ostr; break; case USCRIPT_WESTERN_SYRIAC: - sRet = "tru"; + sRet = "tru"_ostr; break; case USCRIPT_EASTERN_SYRIAC: - sRet = "aii"; + sRet = "aii"_ostr; break; case USCRIPT_TENGWAR: - sRet = "sjn"; + sRet = "sjn"_ostr; break; case USCRIPT_VAI: - sRet = "vai"; + sRet = "vai"_ostr; break; case USCRIPT_VISIBLE_SPEECH: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_CUNEIFORM: - sRet = "akk"; + sRet = "akk"_ostr; break; case USCRIPT_CARIAN: - sRet = "xcr"; + sRet = "xcr"_ostr; break; case USCRIPT_JAPANESE: - sRet = "ja"; + sRet = "ja"_ostr; break; case USCRIPT_LANNA: - sRet = "nod"; + sRet = "nod"_ostr; break; case USCRIPT_LYCIAN: - sRet = "xlc"; + sRet = "xlc"_ostr; break; case USCRIPT_LYDIAN: - sRet = "xld"; + sRet = "xld"_ostr; break; case USCRIPT_OL_CHIKI: - sRet = "sat"; + sRet = "sat"_ostr; break; case USCRIPT_REJANG: - sRet = "rej"; + sRet = "rej"_ostr; break; case USCRIPT_SAURASHTRA: - sRet = "saz"; + sRet = "saz"_ostr; break; case USCRIPT_SIGN_WRITING: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_SUNDANESE: - sRet = "su"; + sRet = "su"_ostr; break; case USCRIPT_MOON: - sRet = "en"; + sRet = "en"_ostr; break; case USCRIPT_MEITEI_MAYEK: - sRet = "mni"; + sRet = "mni"_ostr; break; case USCRIPT_IMPERIAL_ARAMAIC: - sRet = "arc"; + sRet = "arc"_ostr; break; case USCRIPT_AVESTAN: - sRet = "ae"; + sRet = "ae"_ostr; break; case USCRIPT_CHAKMA: - sRet = "ccp"; + sRet = "ccp"_ostr; break; case USCRIPT_KOREAN: - sRet = "ko"; + sRet = "ko"_ostr; break; case USCRIPT_KAITHI: - sRet = "awa"; + sRet = "awa"_ostr; break; case USCRIPT_MANICHAEAN: - sRet = "xmn"; + sRet = "xmn"_ostr; break; case USCRIPT_INSCRIPTIONAL_PAHLAVI: case USCRIPT_PSALTER_PAHLAVI: case USCRIPT_BOOK_PAHLAVI: case USCRIPT_INSCRIPTIONAL_PARTHIAN: - sRet = "xpr"; + sRet = "xpr"_ostr; break; case USCRIPT_SAMARITAN: - sRet = "heb"; + sRet = "heb"_ostr; break; case USCRIPT_TAI_VIET: - sRet = "blt"; + sRet = "blt"_ostr; break; case USCRIPT_MANDAEAN: /* Aliased to USCRIPT_MANDAIC in icu 4.6. */ - sRet = "mic"; + sRet = "mic"_ostr; break; case USCRIPT_NABATAEAN: - sRet = "mis-Nbat"; // Uncoded with script + sRet = "mis-Nbat"_ostr; // Uncoded with script break; case USCRIPT_PALMYRENE: - sRet = "mis-Palm"; // Uncoded with script + sRet = "mis-Palm"_ostr; // Uncoded with script break; case USCRIPT_BAMUM: - sRet = "bax"; + sRet = "bax"_ostr; break; case USCRIPT_LISU: - sRet = "lis"; + sRet = "lis"_ostr; break; case USCRIPT_NAKHI_GEBA: - sRet = "nxq"; + sRet = "nxq"_ostr; break; case USCRIPT_OLD_SOUTH_ARABIAN: - sRet = "xsa"; + sRet = "xsa"_ostr; break; case USCRIPT_BASSA_VAH: - sRet = "bsq"; + sRet = "bsq"_ostr; break; case USCRIPT_DUPLOYAN_SHORTAND: - sRet = "fr"; + sRet = "fr"_ostr; break; case USCRIPT_ELBASAN: - sRet = "sq"; + sRet = "sq"_ostr; break; case USCRIPT_GRANTHA: - sRet = "ta"; + sRet = "ta"_ostr; break; case USCRIPT_KPELLE: - sRet = "kpe"; + sRet = "kpe"_ostr; break; case USCRIPT_LOMA: - sRet = "lom"; + sRet = "lom"_ostr; break; case USCRIPT_MENDE: - sRet = "men"; + sRet = "men"_ostr; break; case USCRIPT_MEROITIC_CURSIVE: - sRet = "xmr"; + sRet = "xmr"_ostr; break; case USCRIPT_OLD_NORTH_ARABIAN: - sRet = "xna"; + sRet = "xna"_ostr; break; case USCRIPT_SINDHI: - sRet = "sd"; + sRet = "sd"_ostr; break; case USCRIPT_WARANG_CITI: - sRet = "hoc"; + sRet = "hoc"_ostr; break; case USCRIPT_AFAKA: - sRet = "djk"; + sRet = "djk"_ostr; break; case USCRIPT_JURCHEN: - sRet = "juc"; + sRet = "juc"_ostr; break; case USCRIPT_MRO: - sRet = "cmr"; + sRet = "cmr"_ostr; break; case USCRIPT_NUSHU: - sRet = "mis-Nshu"; // Uncoded with script + sRet = "mis-Nshu"_ostr; // Uncoded with script break; case USCRIPT_SHARADA: - sRet = "sa"; + sRet = "sa"_ostr; break; case USCRIPT_SORA_SOMPENG: - sRet = "srb"; + sRet = "srb"_ostr; break; case USCRIPT_TAKRI: - sRet = "doi"; + sRet = "doi"_ostr; break; case USCRIPT_TANGUT: - sRet = "txg"; + sRet = "txg"_ostr; break; case USCRIPT_WOLEAI: - sRet = "woe"; + sRet = "woe"_ostr; break; case USCRIPT_ANATOLIAN_HIEROGLYPHS: - sRet = "hlu"; + sRet = "hlu"_ostr; break; case USCRIPT_KHOJKI: - sRet = "gu"; + sRet = "gu"_ostr; break; case USCRIPT_TIRHUTA: - sRet = "mai"; + sRet = "mai"_ostr; break; case USCRIPT_CAUCASIAN_ALBANIAN: - sRet = "xag"; + sRet = "xag"_ostr; break; case USCRIPT_MAHAJANI: - sRet = "mwr"; + sRet = "mwr"_ostr; break; case USCRIPT_AHOM: - sRet = "aho"; + sRet = "aho"_ostr; break; case USCRIPT_HATRAN: - sRet = "qly-Hatr"; + sRet = "qly-Hatr"_ostr; break; case USCRIPT_MODI: - sRet = "mr-Modi"; + sRet = "mr-Modi"_ostr; break; case USCRIPT_MULTANI: - sRet = "skr-Mutl"; + sRet = "skr-Mutl"_ostr; break; case USCRIPT_PAU_CIN_HAU: - sRet = "ctd-Pauc"; + sRet = "ctd-Pauc"_ostr; break; case USCRIPT_SIDDHAM: - sRet = "sa-Sidd"; + sRet = "sa-Sidd"_ostr; break; case USCRIPT_ADLAM: - sRet = "mis-Adlm"; // Adlam for Fulani, no language code + sRet = "mis-Adlm"_ostr; // Adlam for Fulani, no language code break; case USCRIPT_BHAIKSUKI: - sRet = "mis-Bhks"; // Bhaiksuki for some Buddhist texts, no language code + sRet = "mis-Bhks"_ostr; // Bhaiksuki for some Buddhist texts, no language code break; case USCRIPT_MARCHEN: - sRet = "bo-Marc"; + sRet = "bo-Marc"_ostr; break; case USCRIPT_NEWA: - sRet = "new-Newa"; + sRet = "new-Newa"_ostr; break; case USCRIPT_OSAGE: - sRet = "osa-Osge"; + sRet = "osa-Osge"_ostr; break; case USCRIPT_HAN_WITH_BOPOMOFO: - sRet = "mis-Hanb"; // Han with Bopomofo, zh-Hanb ? + sRet = "mis-Hanb"_ostr; // Han with Bopomofo, zh-Hanb ? break; case USCRIPT_JAMO: - sRet = "ko"; // Jamo - elements of Hangul Syllables + sRet = "ko"_ostr; // Jamo - elements of Hangul Syllables break; case USCRIPT_SYMBOLS_EMOJI: - sRet = "mis-Zsye"; // Emoji variant + sRet = "mis-Zsye"_ostr; // Emoji variant break; case USCRIPT_MASARAM_GONDI: - sRet = "gon-Gonm"; // macro language code, could be wsg,esg,gno + sRet = "gon-Gonm"_ostr; // macro language code, could be wsg,esg,gno break; case USCRIPT_SOYOMBO: - sRet = "mn-Soyo"; // abugida to write Mongolian, also Tibetan and Sanskrit + sRet = "mn-Soyo"_ostr; // abugida to write Mongolian, also Tibetan and Sanskrit break; case USCRIPT_ZANABAZAR_SQUARE: - sRet = "mn-Zanb"; // abugida to write Mongolian + sRet = "mn-Zanb"_ostr; // abugida to write Mongolian break; case USCRIPT_DOGRA: - sRet = "dgo"; // Dogri proper + sRet = "dgo"_ostr; // Dogri proper break; case USCRIPT_GUNJALA_GONDI: - sRet = "wsg"; // Adilabad Gondi + sRet = "wsg"_ostr; // Adilabad Gondi break; case USCRIPT_MAKASAR: - sRet = "mak"; + sRet = "mak"_ostr; break; case USCRIPT_MEDEFAIDRIN: - sRet = "dmf-Medf"; + sRet = "dmf-Medf"_ostr; break; case USCRIPT_HANIFI_ROHINGYA: - sRet = "rhg"; + sRet = "rhg"_ostr; break; case USCRIPT_SOGDIAN: - sRet = "sog"; + sRet = "sog"_ostr; break; case USCRIPT_OLD_SOGDIAN: - sRet = "sog"; + sRet = "sog"_ostr; break; case USCRIPT_ELYMAIC: - sRet = "arc-Elym"; + sRet = "arc-Elym"_ostr; break; case USCRIPT_NYIAKENG_PUACHUE_HMONG: - sRet = "hmn-Hmnp"; // macrolanguage code + sRet = "hmn-Hmnp"_ostr; // macrolanguage code break; case USCRIPT_NANDINAGARI: - sRet = "sa-Nand"; + sRet = "sa-Nand"_ostr; break; case USCRIPT_WANCHO: - sRet = "nnp-Wcho"; + sRet = "nnp-Wcho"_ostr; break; case USCRIPT_CHORASMIAN: - sRet = "xco-Chrs"; + sRet = "xco-Chrs"_ostr; break; case USCRIPT_DIVES_AKURU: - sRet = "dv-Diak"; + sRet = "dv-Diak"_ostr; break; case USCRIPT_KHITAN_SMALL_SCRIPT: - sRet = "zkt-Kits"; + sRet = "zkt-Kits"_ostr; break; case USCRIPT_YEZIDI: - sRet = "kmr-Yezi"; + sRet = "kmr-Yezi"_ostr; break; #if (U_ICU_VERSION_MAJOR_NUM >= 70) case USCRIPT_CYPRO_MINOAN: - sRet = "mis-Cpmn"; // Uncoded with script + sRet = "mis-Cpmn"_ostr; // Uncoded with script break; case USCRIPT_OLD_UYGHUR: - sRet = "oui-Ougr"; + sRet = "oui-Ougr"_ostr; break; case USCRIPT_TANGSA: - sRet = "nst-Tnsa"; + sRet = "nst-Tnsa"_ostr; break; case USCRIPT_TOTO: - sRet = "txo-Toto"; + sRet = "txo-Toto"_ostr; break; case USCRIPT_VITHKUQI: - sRet = "sq-Vith"; // macrolanguage code + sRet = "sq-Vith"_ostr; // macrolanguage code break; #endif #if (U_ICU_VERSION_MAJOR_NUM >= 72) case USCRIPT_KAWI: - sRet = "mis-Kawi"; // Uncoded with script + sRet = "mis-Kawi"_ostr; // Uncoded with script break; case USCRIPT_NAG_MUNDARI: - sRet = "unr-Nagm"; + sRet = "unr-Nagm"_ostr; break; #endif } |