MCPcopy Create free account
hub / github.com/CvvT/AppTroy / wrapString

Method wrapString

app/src/main/java/org/cc/util/StringWrapper.java:54–81  ·  view source on GitHub ↗

Splits the given string into lines using on any embedded newlines, and wrapping the text as needed to conform to the given maximum line width. This uses and assumes unix-style newlines @param str The string to split @param maxWidth The maximum length of any line @param output If given, try to use

(@Nonnull String str, int maxWidth, @Nullable String[] output)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

writeMethod · 0.95

Calls 3

addStringMethod · 0.95
lengthMethod · 0.45
charAtMethod · 0.45

Tested by

no test coverage detected