Code: Select all
var:="Д"
if var is upper
msgbox UPPER ;doesn't work
Code: Select all
var:="Д"
if var is upper
msgbox UPPER ;doesn't work
Code: Select all
var:="Д"
StringLower, lower, var
if !(var==lower)
MsgBox Upper
Code: Select all
var:="ДОБРО"
if var is upper
msgbox Upper
Code: Select all
Russian := "ДОБРО"
Loop, Parse, Russian
{
StringLower, Lower, A_LoopField
Result .= A_LoopField " : " ( A_LoopField == Lower ? "Lower":"Upper" ) "`n"
}
Msgbox % Result
Code: Select all
var:="ДОБРО"
varl:="добро"
stringUpper,upper,var ; change to varl if you want to ensure it correctly capitalizes (it does)
if(var==upper)
msgbox Upper
if !(varl==upper)
msgbox Lower
msgbox % var "`n" varl "`n" upper
Masonjar13 wrote:Code: Select all
var:="ДОБРО" stringUpper,upper,var if(var==upper) msgbox Upper
Code: Select all
#NoEnv
Var := "ДОБРО"
MsgBox, 0, IsUpper(Var), % "IsUpper(""" . Var . """) = " . IsUpper(Var)
IsUpper(String) {
Return (String == Format("{:U}", String))
}