# String Length

Grammar — Length of s
FlagsNative | Function

Returns the number of characters within a string.

# Arguments

  • string — String

Returns — int

native int StringLength(string s);

Category: String / Comparisons

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L18542
StringLength(libSwaC_gv_zSX_CamStatsMisisonOrder)
// L18543
StringLength(libSwaC_gv_zSX_CamStatsMisisonOrder)
// L18543
StringLength(libSwaC_gv_zSX_CamStatsMisisonOrder)
// L18658
StringLength(libSwaC_gv_zSX_CamStatsWeaponArmorUpgrades)
// L18764
StringLength(libSwaC_gv_zSX_CamStatsWeaponArmorUpgrades)
// L23738
StringLength(EventChatMessage(false))

# campaigns/void.sc2campaign

MapScript.galaxy

// L580
StringLength(lv_intString)
// L580
StringLength(lv_intString)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L10233
StringLength(EventChatMessage(false))

# mods/core.sc2mod

NativeLib.galaxy

// L5449
StringLength(lp_textures)
// L4641
StringLength(lp_textures)

# mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod

LibIGHS.galaxy

// L1901
StringLength(lv_chatString)
// L1902
StringLength(lv_chatString)
// L2067
StringLength(lv_chatString)
// L2070
StringLength(lv_chatString)
// L2146
StringLength(lv_chatString)
// L2150
StringLength(lv_chatString)
// L2157
StringLength(lv_chatString)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2677
StringLength(lv_fullColorString)
// L2680
StringLength(lv_fullColorString)
// L4030
StringLength(lv_name)
// L4031
StringLength(lv_subName)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L2308
StringLength(lp_filter)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L5799
StringLength(StringWord(EventChatMessage(false), 2))

# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod

LibMLBD.galaxy

// L3132
StringLength(EventChatMessage(false))

# mods/liberty.sc2mod

LibertyLib.galaxy

// L502
StringLength(IntToString(lp_number))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L12772
StringLength(StringWord(EventChatMessage(false), 3))

# mods/warcoop/warclassicsystem.sc2mod

WarClassicTactical.galaxy

// L641
StringLength(lv_itAbilTact)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L409
StringLength(lp_string)
// L538
StringLength(lp_delimiter)
// L542
StringLength(lv_sentence)
// L543
StringLength(lv_sentence)
// L546
StringLength(lv_sentence)
// L563
StringLength(lp_sentence)
// L564
StringLength(lp_clippingWord)
// L3015
StringLength(lv_chatstring)
// L3038
StringLength(lv_chatstring)
// L3044
StringLength(lv_chatstring)