Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
F14827157: D14624.diff
Wed, Jan 29, 4:11 AM
Unknown Object (File)
Mon, Jan 27, 6:33 AM
Unknown Object (File)
Fri, Jan 24, 6:24 PM
Unknown Object (File)
Fri, Jan 24, 10:11 AM
Unknown Object (File)
Fri, Jan 24, 10:11 AM
Unknown Object (File)
Fri, Jan 24, 10:11 AM
Unknown Object (File)
Fri, Jan 24, 10:11 AM
Unknown Object (File)
Fri, Jan 24, 10:11 AM
Subscribers

Details

Summary

This class is case-insensitive but also case-preserving. The primary motivation for this class is to assist in handling PHP classes, functions and interfaces (which are case-insensitive).

Test Plan

Added test cases.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9193
Build 10873: Run Core Tests
Build 10872: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add case-insensitive array.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.

Add a getKeys() method

epriestley edited edge metadata.
epriestley added inline comments.
src/utils/CaseInsensitiveArray.php
118

Prefer phutil_utf8_strtolower() probably?

This revision is now accepted and ready to land.Dec 1 2015, 10:46 PM
joshuaspence edited edge metadata.

Use phutil_utf8_strtolower instead of strtolower

This revision was automatically updated to reflect the committed changes.