Re: [Clip] IsCapitalized and other Is Functions
- Hello Wayne,
>One item that caught my attention is surprising behavior for theI treat numbers as being both lower and uppercase, so that they don't
>^$IsCapitalized()$ function with non-alphabetic characters.
> ^$IsCapitalized("12345")$ = 1 but ^$IsCapitalized("-1234")$ = 0
> and ^$IsCapitalized("!@#$%")$ = 0
interfere in the result when numbers are mixed with words. The "-" is not
considered a number and thus does not have this special property.
>Also ^$IsMixedCase()$ doesn't act as I expected:If only the first character is in upper case, then it is not considered
> ^$IsMixedCase("Aa_Bb")$ = 1 but ^$IsMixedCase("M80sx")$ = 0
> and ^$IsMixedCase("12345")$ = 1
"mixed case". The Help file says: "Note that text that is capitalized is
not considered mixed case."
Hope this clears some of the mystery. I do realize that my approach will
not necessarily suit everyone.
Eric G.V. Fookes
Author of NoteTab, Mailbag Assistant, and Album Express
http://www.fookes.com/ and http://www.notetab.com/