#
#
# Nim's Runtime Library
# (c) Copyright 2018 Nim contributors
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
## This module contains an algorithm to wordwrap a Unicode string.
import strutils, unicode
proc olen(s: string; start, lastExclusive: int): int =
var i = start
result = 0
while i < lastExclusive:
inc result
let