Sifter.Utils (Sifter v0.2.0)
View SourceUtilities shared by the Sifter lexer/parser.
Snakecase rules per segment (segments are dot-separated):
- Insert
_only atlower|digit → UPPERboundaries (e.g.firstName→first_name,id2X→id2_x) - No acronym splitting (e.g.
APIKey→apikey, notapi_key) - Map
-and space to_, collapse consecutive_, lowercase everything - Apply independently to each dot-separated segment (dots preserved)