Bug 517779 - use case-insensitive string comparisons when necessary
Summary: use case-insensitive string comparisons when necessary
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-04 09:01 EDT by Thierry BLIND CLA
Modified: 2020-05-14 10:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2017-06-04 09:01:54 EDT
Hi,
PHP is partly a case-insensitive language (for class, trait, function, method, constructor, keyword names) and a case-sensitive language (for variable, constant, array key, class property, class constant names), which makes it a bit complicated to do it right on the PDT side.

For now we have some PDT code that should do case-insensitive comparisons but doesn't, we should correct PDT to use string case-insensitive comparisons for most PHP elements (classes, traits, functions, methods, constructors, keywords, ...).
This means converting calls to string methods like equals(), startsWith(), endsWith() to their case-insensitive equivalents, and also store/compare data in Set<String>, Map<String, ...> and List<String> in case-insensitive way.

That will be post 5.0 material.

Thierry.
Comment 1 Eclipse Genie CLA 2017-06-04 09:34:05 EDT
New Gerrit change created: https://git.eclipse.org/r/98600