Modify

#121 closed Bug (Fixed)

StringSplit not case sensitive for separator with multiple characters as group

Reported by: randallc Owned by: Jpm
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, on Feb 16, 2008 at 12:03:13 AM

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, on Feb 16, 2008 at 6:33:25 AM

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 Jpm, on Feb 16, 2008 at 1:00:21 PM

Milestone: 3.2.11.2
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.2

comment:4 by MrCreatoR <mscreator@…>, on Apr 18, 2010 at 3:39:42 AM

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@…>, on Apr 18, 2010 at 3:41:22 AM

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

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

comment:6 by Jpm, on Apr 18, 2010 at 6:21:37 AM

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 Jpm.

Add Comment


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