Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/String-comparison/AutoHotkey/string-comparison-1.ahk
Normal file
18
Task/String-comparison/AutoHotkey/string-comparison-1.ahk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
exact_equality(a,b){
|
||||
return (a==b)
|
||||
}
|
||||
exact_inequality(a,b){
|
||||
return !(a==b)
|
||||
}
|
||||
equality(a,b){
|
||||
return (a=b)
|
||||
}
|
||||
inequality(a,b){
|
||||
return !(a=b)
|
||||
}
|
||||
ordered_before(a,b){
|
||||
return ("" a < "" b)
|
||||
}
|
||||
ordered_after(a,b){
|
||||
return ("" a > "" b)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
for a, b in {"alpha":"beta", "Gamma":"gamma", 100:5}
|
||||
MsgBox % a " vs " b "`n"
|
||||
. "exact_equality case sensitive : " exact_equality(a,b) "`n"
|
||||
. "exact_inequality case sensitive :" exact_inequality(a,b) "`n"
|
||||
. "equality case insensitive : " equality(a,b) "`n"
|
||||
. "inequality case insensitive : " inequality(a,b) "`n"
|
||||
. "ordered_before : " ordered_before(a,b) "`n"
|
||||
. "ordered_after : " ordered_after(a,b) "`n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue