Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
F22134991: D14624.diff
Sat, Aug 22, 5:33 PM
Unknown Object (File)
Wed, Aug 19, 8:10 PM
Unknown Object (File)
Wed, Aug 12, 11:57 AM
Unknown Object (File)
Tue, Aug 11, 1:36 PM
Unknown Object (File)
Fri, Aug 7, 2:47 AM
Unknown Object (File)
Apr 19 2026, 5:45 AM
Unknown Object (File)
Apr 7 2026, 1:55 AM
Unknown Object (File)
Apr 4 2026, 7:50 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 9192
Build 10871: Run Core Tests
Build 10870: 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
119

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.