Opened 18 years ago
Closed 18 years ago
#328 closed Feature Request (Completed)
Faster string manipulation with use of ASCII decimal values.
| Reported by: | SmOke_N | Owned by: | Valik |
|---|---|---|---|
| Milestone: | 3.2.13.6 | Component: | AutoIt |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
StringSplitASCII("String") or StringToASCII("String")
Return an array of ASCII decimal values.
And for the conversion of an ASCII array something like StringASCIIStr(avArray).
Global $aSTA = StringSplitASCII("My String")
Global $sConvert = ""
;Output of Array values:
;$aSTA[0] = 77
;$aSTA[1] = 121
;$aSTA[2] = 32
;$aSTA[3] = 83
;$aSTA[4] = 116
;$aSTA[5] = 114
;$aSTA[6] = 105
;$aSTA[7] = 110
;$aSTA[8] = 103
;$aSTA[9] = 0 ; doubt this should be accessible
$aSTA[4] = 0
$sConvert = StringASCIIStr($aSTA)
ConsoleWrite($sConvert & @CRLF)
;Should give the output of "My S".
I suppose you could add parameters such as start position and end position for those manipulating large strings.
With some of the slower string functions ... this would be a welcomed new addition.
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
| Milestone: | Future Release |
|---|---|
| Version: | 3.2.12.0 |
comment:2 by , 18 years ago
| Owner: | set to |
|---|---|
| Status: | new → accepted |
I'll take a look at this but the criteria for it's inclusion is that it must actually demonstrate a performance gain. If it ends up not really being faster than StringMid() or StringSplit() then it's a no-go.
comment:3 by , 18 years ago
| Milestone: | → 3.2.13.6 |
|---|---|
| Resolution: | → Completed |
| Status: | accepted → closed |
Added in version: 3.2.13.6

Automatic ticket cleanup.