메소드 | 설명 | |
---|---|---|
Reflow ( string value, int maxChars ) : IEnumerable |
Strip all newlines from the input string, then return chunks of text of at most maxChars characters.
|
|
ReflowWords ( string value, int maxChars ) : IEnumerable |
Strip all newlines from the input string, then return chunks of text of at most maxChars characters. If a word (defined as consecutive characters that aren't spaces or tabs) is being split, the line will return up to the last whole word. If a word's length is longer than maxChars, it will be forced to split across multiple lines. If multiple separator characters occur at a line boundary, they will be removed. |
|
ReflowWords ( string value, int maxChars, Array separators ) : IEnumerable |
Strip all newlines from the input string, then return chunks of text of at most maxChars characters. If a word (defined as consecutive characters that aren't given in separators) is being split, the line will return up to the last whole word. If a word's length is longer than maxChars, it will be forced to split across multiple lines. If multiple separator characters occur at a line boundary, they will be removed.
|
메소드 | 설명 | |
---|---|---|
FindNextNonSeparator ( string text, int start, Array seps ) : int | ||
FindPreviousNonSeparator ( string text, int start, int end, Array seps ) : int | ||
FindPreviousSeparator ( string text, int start, int end, Array seps ) : int |
public static Reflow ( string value, int maxChars ) : IEnumerable |
||
value | string | String to reflow. |
maxChars | int | Maximum number of characters per line. |
리턴 | IEnumerable |
public static ReflowWords ( string value, int maxChars ) : IEnumerable |
||
value | string | String to reflow. |
maxChars | int | Maximum number of characters per line. |
리턴 | IEnumerable |
public static ReflowWords ( string value, int maxChars, Array separators ) : IEnumerable |
||
value | string | String to reflow. |
maxChars | int | Maximum number of characters per line. |
separators | Array | Array of valid separator characters that prepends and/or appends each word. In English it will be the whitespace character. |
리턴 | IEnumerable |