# Convert Text Case
Grammar — Text(t) as case|Lower/Upper Case
Flags —Native
|Function
Converts text to upper case or lower case.
# Arguments
text
— Textbool
[ preset::String_Case_Option ] — Case
Returns — text
native text TextCase(text t, bool upper);
# Related
Category: String / Formatting
- [F] —
text
— Convert Time To Text — ( TextTimeFormat ) - [F] —
string
— Convert String Case — ( StringCase ) - [F] —
text
— Convert Text Case — ( TextCase ) - [F] —
text
— Convert Game Text — ( StringExternal ) - [F] —
text
— Convert Game Hotkey — ( StringExternalHotkey ) - [F] —
text
— Convert Game Asset — ( StringExternalAsset ) - [F] —
text
— Text With Color — ( TextWithColor ) - [F] —
void
— Set Text Expression Token — ( TextExpressionSetToken ) - [F] —
text
— Text Expression — ( TextExpressionAssemble )
# Examples
# campaigns/liberty.sc2campaign
// L3842
TextCase(libNtve_gf_DialogItemText(lp_button, 1), true)
// L8515
TextCase(StringExternal("Param/Value/E8F22CDE"), true)
// L10470
TextCase(DifficultyNameCampaign(lp_difficulty), true)
// L13794
TextCase(ConversationDataStateName(lp_convoID), true)
// L566
TextCase(lp_buttonText, true)
// L584
TextCase(lp_buttonText, true)
// L1254
TextCase(StringExternal("Param/Value/B72655EF"), true)
// L1266
TextCase(StringExternal("Param/Value/15DA9B3E"), true)
// L1276
TextCase(StringExternal("Param/Value/E60F4B90"), true)
// L3842
TextCase(libNtve_gf_DialogItemText(lp_button, 1), true)
// L8515
TextCase(StringExternal("Param/Value/E8F22CDE"), true)
// L10470
TextCase(DifficultyNameCampaign(lp_difficulty), true)
// L13794
TextCase(ConversationDataStateName(lp_convoID), true)
// L566
TextCase(lp_buttonText, true)
// L584
TextCase(lp_buttonText, true)
// L1254
TextCase(StringExternal("Param/Value/B72655EF"), true)
// L1266
TextCase(StringExternal("Param/Value/15DA9B3E"), true)
// L1276
TextCase(StringExternal("Param/Value/E60F4B90"), true)
# campaigns/libertystory.sc2campaign
// L2802
TextCase(libCamp_gf_MissionName(lp_mission), true)
# campaigns/swarmstory.sc2campaign
// L8666
TextCase(libSwaC_gf_ZS_StoryArmyUpgradeName(libSwaC_gv_zS_ArmyCustomUpgradeCurrent), true)
# mods/heroes.stormmod
// L3555
TextCase(StringExternal("Param/Value/62CFC26E"), true)
// L4029
TextCase(StringExternal("Param/Value/19C54563"), true)
// L4919
TextCase(StringExternal("Param/Value/2B86BC31"), true)
// L5492
TextCase(StringExternal("Param/Value/42D7B07C"), true)
// L6515
TextCase(StringExternal("Param/Value/8C7A1145"), true)
// L7586
TextCase(StringExternal("Param/Value/A7D5CCCB"), true)
// L3555
TextCase(StringExternal("Param/Value/62CFC26E"), true)
// L4029
TextCase(StringExternal("Param/Value/19C54563"), true)
// L4919
TextCase(StringExternal("Param/Value/2B86BC31"), true)
// L5492
TextCase(StringExternal("Param/Value/42D7B07C"), true)
// L6515
TextCase(StringExternal("Param/Value/8C7A1145"), true)
// L7586
TextCase(StringExternal("Param/Value/A7D5CCCB"), true)
# mods/starcoop/starcoop.sc2mod
// L2989
TextCase(UnitTypeGetName(UnitGetType(lv_bonusUnit)), true)
# mods/starcoop/starcoop.sc2mod
// L1860
TextCase(StringExternal("UI/GameSpeed/Fasr"), true)
// L1864
TextCase(StringExternal("UI/GameSpeed/Fast"), true)
// L1871
TextCase(StringExternal("UI/GameSpeed/Norm"), true)
// L1875
TextCase(StringExternal("UI/GameSpeed/Slow"), true)