Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
F15386365: D14624.id35382.diff
Sat, Mar 15, 12:26 AM
Unknown Object (File)
Mon, Mar 3, 4:24 AM
Unknown Object (File)
Sat, Mar 1, 10:56 PM
Unknown Object (File)
Fri, Feb 14, 3:55 AM
Unknown Object (File)
Fri, Feb 14, 3:55 AM
Unknown Object (File)
Feb 11 2025, 10:23 AM
Unknown Object (File)
Feb 8 2025, 11:56 PM
Unknown Object (File)
Feb 8 2025, 11:56 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.