Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
F13284494: D14624.id35391.diff
Mon, Jun 3, 5:38 AM
F13283519: D14624.diff
Sun, Jun 2, 3:27 PM
F13269544: D14624.diff
Wed, May 29, 6:26 AM
F13254945: D14624.diff
Sat, May 25, 3:56 AM
F13250978: D14624.id35398.diff
Fri, May 24, 6:58 PM
F13234661: D14624.diff
Tue, May 21, 3:37 AM
F13228474: D14624.id35383.diff
Mon, May 20, 9:45 AM
F13216266: D14624.diff
Fri, May 17, 11:39 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.