Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stri_wrap /dynamic/ should ignore the cost of printing the last line #128

Closed
gagolews opened this issue Dec 5, 2014 · 0 comments
Closed
Assignees
Milestone

Comments

@gagolews
Copy link
Owner

gagolews commented Dec 5, 2014

x <- stri_paste(rep("\u0105\u0105\u0105\u0105\u0105", 5), collapse=" "); cat(stri_wrap(x, width = 14), sep="\n")
ąąąąą
ąąąąą ąąąąą
ąąąąą ąąąąą

vs

> x <- stri_paste(rep("\u0105\u0105\u0105\u0105\u0105", 5), collapse=" "); cat(stri_wrap(x, width = 14, cost=0), sep="\n")
ąąąąą ąąąąą
ąąąąą ąąąąą
ąąąąą
@gagolews gagolews self-assigned this Dec 5, 2014
@gagolews gagolews added this to the stringi-0.4 milestone Dec 5, 2014
@gagolews gagolews closed this as completed Dec 5, 2014
@gagolews gagolews changed the title stri_wrap counts the number of bytes, not Unicode code points stri_wrap /dynamic/ should ignore the cost of printing the last line Dec 5, 2014
@gagolews gagolews reopened this Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant