Modify

Opened 17 years ago

Closed 17 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.

Change History (3)

comment:1 Changed 17 years ago by TicketCleanup

  • Milestone Future Release deleted
  • Version 3.2.12.0 deleted

Automatic ticket cleanup.

comment:2 Changed 17 years ago by Valik

  • Owner set to Valik
  • Status changed from new to 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 Changed 17 years ago by Valik

  • Milestone set to 3.2.13.6
  • Resolution set to Completed
  • Status changed from accepted to closed

Added in version: 3.2.13.6

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.