get rid of deprecated toLower/toUpper

This commit is contained in:
Andreas Rumpf 2016-07-19 19:28:01 +02:00
commit 9605435f2e
8 changed files with 16 additions and 15 deletions

View file

@ -220,7 +220,7 @@ proc setDefaultLibpath*() =
libpath = parentNimLibPath
proc canonicalizePath*(path: string): string =
when not FileSystemCaseSensitive: result = path.expandFilename.toLower
when not FileSystemCaseSensitive: result = path.expandFilename.toLowerAscii
else: result = path.expandFilename
proc shortenDir*(dir: string): string =
@ -340,11 +340,11 @@ proc findFile*(f: string): string {.procvar.} =
else:
result = f.rawFindFile
if result.len == 0:
result = f.toLower.rawFindFile
result = f.toLowerAscii.rawFindFile
if result.len == 0:
result = f.rawFindFile2
if result.len == 0:
result = f.toLower.rawFindFile2
result = f.toLowerAscii.rawFindFile2
patchModule()
proc findModule*(modulename, currentModule: string): string =