Difference between revisions of "Length"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=String Handling Routines|
 
  
 
function1={{Function|
 
function1={{Function|
Line 20: Line 19:
 
needscode=yes|
 
needscode=yes|
 
}}
 
}}
 +
 +
[[Category:String Handling Routines]]

Revision as of 05:09, 22 May 2010

needs(code_samples);

Function Syntax

int length(string count_me )

  • count_me is the string to check

Returns the number of characters (not 0-indexed) in a string. Note that for escaped characters, only the actual character — not the escape marker — is counted.