librasn / compiler

An ASN1 compiler producing Rust bindings for the rasn framework
Other
10 stars 7 forks source link

Snake case conversion enhancement #12

Closed v0-e closed 5 months ago

v0-e commented 5 months ago

This should keep the same behavior of the current snake case conversion, however it now adds only one _ to a sequence of uppercase letters instead of one _ per uppercase letter, e.g., ASN.1 identifier: messageID, from message_i_d to message_id ASN.1 module: ETSI-ITS-CDD, from e_t_s_i__i_t_s__c_d_d to etsi__its__cdd