Lasso Soft Inc. > Home

[ string->istitle ]

Method

[String->IsTitle] checks whether a specified character within the string is in title case. A character is a titlecase character if its general category type is in the Unicode Character Category 'Letter, Titlecase'. Accepts an optional integer parameter for the position of the character in the string to check, defaulting to the first character if omitted. The method returns True if the character is in title case or False otherwise.

Note in this context, titlecase refers to the Unicode Character Category, and not to the capitalization of the first letter of a word.

  • Syntax
'String Object'->istitle
'String Object'->istitle(Integer)
Examples
  • Beginner

To check whether a character is in title case:

Use the [String->IsTitle] method. The following example returns False since the fifth character of the string is not a member of the Unicode Character Category 'Letter, Titlecase'.

Code

'The Quick White Rhino'->istitle(5)

Result

false
Resources
  • Articles

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft