compiler_ropes: ropeLen -> len
This commit is contained in:
parent
57fa8c6d3f
commit
97d2df9bac
1 changed files with 1 additions and 2 deletions
|
|
@ -86,7 +86,6 @@ proc app*(a: var PRope, b: string)
|
||||||
proc prepend*(a: var PRope, b: PRope)
|
proc prepend*(a: var PRope, b: PRope)
|
||||||
proc toRope*(s: string): PRope
|
proc toRope*(s: string): PRope
|
||||||
proc toRope*(i: BiggestInt): PRope
|
proc toRope*(i: BiggestInt): PRope
|
||||||
proc ropeLen*(a: PRope): int
|
|
||||||
proc writeRopeIfNotEqual*(r: PRope, filename: string): bool
|
proc writeRopeIfNotEqual*(r: PRope, filename: string): bool
|
||||||
proc ropeToStr*(p: PRope): string
|
proc ropeToStr*(p: PRope): string
|
||||||
proc ropef*(frmt: TFormatStr, args: varargs[PRope]): PRope
|
proc ropef*(frmt: TFormatStr, args: varargs[PRope]): PRope
|
||||||
|
|
@ -100,7 +99,7 @@ proc ropeInvariant*(r: PRope): bool
|
||||||
var errorHandler*: proc(err: TRopesError, msg: string, useWarning = false)
|
var errorHandler*: proc(err: TRopesError, msg: string, useWarning = false)
|
||||||
# avoid dependency on msgs.nim
|
# avoid dependency on msgs.nim
|
||||||
|
|
||||||
proc ropeLen(a: PRope): int =
|
proc len*(a: PRope): int =
|
||||||
if a == nil: result = 0
|
if a == nil: result = 0
|
||||||
else: result = a.length
|
else: result = a.length
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue