kaesereibe Posted January 21, 2015 Share Posted January 21, 2015 Why not add this feature to AutoIt StringLower:StringLower ( "string", stringlen ) StringLower("string", 0 or empty) => lowercase all StringLower("string", X >= 0) => lowercase x chars BIN 2 DEC | ConvertTemp | DEC 2 BIN | GetWeekday | HEX 2 RGB | INT 2 HEX | QueryPerformance Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 21, 2015 Moderators Share Posted January 21, 2015 (edited) Yeah, but it's one command built into the language, and we let AutoIt worry about the implementation of it. I personally don't care HOW it's done I just want to get it done. I want a quarter inch hole, not a quarter inch drill. I'd rather make a single wrapper call to a dll most of the time, but in fairness, I'd imagine stringlower + stringleft + stringtrimleft is 5 to 10x's faster than the dll call. And for more giggles, a wrapper to the CharLowerBuff Func _WinAPI_CharLowerBuff($sString, $iLen = Default) $iLen = ((IsKeyword($iLen) Or $iLen < 1) ? StringLen($sString) : $iLen) Local $aszRet = DllCall("user32.dll", "dword", "CharLowerBuffW", _ "wstr", $sString, "dword", $iLen) If @error Or Not $aszRet[0] Then Return SetError(1, 0, "") EndIf Return SetError(0, $aszRet[0], $aszRet[1]) EndFunc @kaesereibe Maybe you should put that suggestion as a topic in Dev-Chat Edited January 21, 2015 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
kylomas Posted January 21, 2015 Share Posted January 21, 2015 Why not add this feature to AutoIt StringLower After all of these examples of how easy it is to do at the user level? @BrewmanH - I love it when these heavy hitters go off like this. Learn something every time!! Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now