#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;
- 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 , 18 years ago
comment:2 by , 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 , 18 years ago
| Milestone: | → 3.2.11.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.2.11.2
comment:4 by , 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 , 16 years ago
comment:6 by , 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.

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