Modify

Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#121 closed Bug (Fixed)

StringSplit not case sensitive for separator with multiple characters as group

Reported by: randallc Owned by: J-Paul Mesnage
Milestone: 3.2.11.2 Component: AutoIt
Version: 3.2.10.0 Severity: None
Keywords: Cc:

Description

Whereas;
separator with Individual characters, or
separator with multiple characters as group
-both- are case sensitive;

  1. Could this be documented if not regarded as a bug?

Please clarify intended behaviour?
Thanks, Randall

Attachments (0)

Change History (6)

comment:1 by anonymous, 18 years ago

Examples;

$arFileF = StringSplit("caBca", "abc", 1) ;matches!match on "aBc" by "acb"
$arFileF = StringSplit("caBca", "abc", 0) ; no match on "B" by "b"

in reply to:  1 comment:2 by J-Paul Mesnage, 18 years ago

Replying to anonymous:

Examples;

$arFileF = StringSplit("caBca", "abc", 1) ;matches!match on "aBc" by "acb"
$arFileF = StringSplit("caBca", "abc", 0) ; no match on "B" by "b"

you right there is an incoherence. delimiter should case sensitive in both case.
Doc must be updated too ;)

comment:3 by J-Paul Mesnage, 18 years ago

Milestone: 3.2.11.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.2

comment:4 by MrCreatoR <mscreator@…>, 16 years ago

There is still an issue with flag 1:

#include <Array.au3>

$aSplit = StringSplit("caBca", "abc", 1) ;Should split into 2 elements: [1] = c, [1] = a
;$aSplit = StringSplit("caBca", "aBc", 1) ;This one splits correctly

_ArrayDisplay($aSplit)

AutoIt:3.3.6.0 (Os:WIN_XP/X86/Service Pack 3 Language:0419 Keyboard:00000409 Cpu:X64)

I think the best solution would be to add an optional parameter - $iCaseSense.

comment:5 by MrCreatoR <mscreator@…>, 16 years ago

;Should split into 2 elements: [1] = c, [1] = a

I mean «.....[1] = c, [2] = a»

comment:6 by J-Paul Mesnage, 16 years ago

Severity: None

You better to open a feature request as the doc as really be updated.Don"t add info on already closed ticket at least from the subject.

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.