Opened on Feb 15, 2008 at 4:57:51 PM
Closed on Feb 16, 2008 at 1:00:21 PM
Last modified on Apr 18, 2010 at 6:21:37 AM
#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;
- Could this be documented if not regarded as a bug?
Please clarify intended behaviour?
Thanks, Randall
Attachments (0)
Change History (6)
follow-up: 2 comment:1 by , on Feb 16, 2008 at 12:03:13 AM
comment:2 by , 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 , on Feb 16, 2008 at 1:00:21 PM
| Milestone: | → 3.2.11.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.2.11.2
comment:4 by , 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:6 by , 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.

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