Make functions exported
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Convert strings to/from SNAKE_CASE
|
||||
|
||||
proc toSnakeCase(str: string): string =
|
||||
proc toSnakeCase*(str: string): string =
|
||||
## Convert a camelCase string to SNAKE_CASE
|
||||
if str.len > 0:
|
||||
var prv: char = '\0'
|
||||
@@ -17,7 +17,7 @@ proc toSnakeCase(str: string): string =
|
||||
if result.len > 0 and result[^1] != '_':
|
||||
result.add '_'
|
||||
|
||||
proc fromSnakeCase(str: string): string =
|
||||
proc fromSnakeCase*(str: string): string =
|
||||
## Convert from SNAKE_CASE to camelCase
|
||||
var usc: bool = false
|
||||
for ch in str:
|
||||
|
||||
Reference in New Issue
Block a user