Modify

Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#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 follow-up: Changed 12 years ago by anonymous

Examples;

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

comment:2 in reply to: ↑ 1 Changed 12 years ago by jpm

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 Changed 12 years ago by Jpm

  • Milestone set to 3.2.11.2
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.11.2

comment:4 Changed 10 years ago by MrCreatoR <mscreator@…>

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 Changed 10 years ago by MrCreatoR <mscreator@…>

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

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

comment:6 Changed 10 years ago by Jpm

  • Severity set to 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.

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

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.