Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
F18820535: D14624.id35391.diff
Wed, Oct 22, 3:45 PM
F18806449: D14624.diff
Sat, Oct 18, 7:34 PM
F18617084: D14624.diff
Sep 14 2025, 8:11 PM
F18383701: D14624.id.diff
Aug 28 2025, 11:19 PM
F18236465: D14624.id35398.diff
Aug 20 2025, 8:18 PM
F18196876: D14624.id35391.diff
Aug 17 2025, 7:50 PM
F17931889: D14624.id35391.diff
Jul 30 2025, 7:31 PM
Unknown Object (File)
Jul 2 2025, 12:17 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 9202
Build 10888: Run Core Tests
Build 10887: 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.