toUpperSnake

fnstring toUpperSnake(string name) @safe pure nothrow

Converts a name to UPPER_SNAKE (the enum-item form).

Parameters

namethe input name.

Returns

the upper snake-case name; KeyPress -> KEY_PRESS,

wl_surface -> WL_SURFACE, CHAR2B -> CHAR2B.