Fix camelCase again
This commit is contained in:
parent
fd07f1580e
commit
e2dfe815ab
1 changed files with 0 additions and 4 deletions
|
|
@ -12,7 +12,6 @@ template camelCase(str: string): string =
|
|||
else:
|
||||
res.add(str[i])
|
||||
i += 1
|
||||
res[0] = res[0].toUpperAscii
|
||||
res
|
||||
|
||||
template lowerFirstLetter(str, rep: string): string =
|
||||
|
|
@ -124,9 +123,6 @@ proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
|
|||
for rep in replacements:
|
||||
if sym.kind == nskProc:
|
||||
sym.name = lowerFirstLetter(sym.name, rep)
|
||||
# elif sym.kind == nskType:
|
||||
# if sym.name.startsWith(rep):
|
||||
# sym.name = camelCase(removeBeginning(sym.name, rep))
|
||||
else:
|
||||
sym.name = removeBeginning(sym.name, rep)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue