https://bugs.kde.org/show_bug.cgi?id=439845

--- Comment #5 from php4...@gmail.com ---
> I agree that the behavior for uppercase letters and numbers is a bit 
> unexpected

Not "a bit unexpected", just wrong.

Apparently the criterion for an uppercase letter to be considered the start of
a new  camel-cased word is to be "followed by an alphanumeric character that is
not another uppercase letter" (note that IPSUM is not split into IPSU+M), while
instead it should be to be "followed by a lowercase letter". (I'm not trying to
reverse-engineer the actual algorithm, I'm sure there's more to it, just
loosely generalizing the behavior description based on the examples.)

> I partially prefer the first option you proposed (e.g. IPSUM123 should be 
> separated as IPSUM and 123)

That would be inconsistent with the fact that, currently, "ipsum123"
(lowercase) is NOT split. Either you split both (ipsum123 => "ipsum, 123" ;
IPSUM123 => "IPSUM, 123") or you split neither. I strongly advise against
separating sequences of letters from sequences of numbers, as it results in "a
bit unexpected" behaviors with hexadecimal numbers and similar hashes.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to