Page MenuHomePhabricator

Add case-insensitive array
ClosedPublic

Authored by joshuaspence on Dec 1 2015, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 15, 4:24 AM
Unknown Object (File)
Tue, Dec 24, 2:58 PM
Unknown Object (File)
Dec 11 2024, 12:07 AM
Unknown Object (File)
Dec 6 2024, 2:26 PM
Unknown Object (File)
Dec 5 2024, 4:31 PM
Unknown Object (File)
Nov 23 2024, 4:48 AM
Unknown Object (File)
Nov 22 2024, 12:29 PM
Unknown Object (File)
Nov 21 2024, 7:31 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.