Length: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
moved Length to Length(): I guess the parentheses are mandatory...
 
imported>StDoodle
No edit summary
Line 1: Line 1:
#REDIRECT [[Length()]]
{{#vardefine:name|length}}
{{#vardefine:return_type|int}}
 
{{FunctionPage|
name={{#var:name}}|
function_category=String Handling Routines|
 
function1={{Function|
name={{#var:name}}|
aggregate={{#var:aggregate}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}|
parameter1={{Param|string|count_me}}|
p1desc={{Pspan|count_me}} is the string to check
}}|
 
function_description=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.|
 
}}

Revision as of 22:23, 2 March 2010



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.