Type representing either Unix or Windows line separators
Modifiers | Name | Description |
---|---|---|
enum |
NormalizeLineSeparatorReader.LineSeparator.MatchResult |
Constructor and description |
---|
NormalizeLineSeparatorReader.LineSeparator
(String separator, Character notPrecededByChar) |
Type Params | Return Type | Name and description |
---|---|---|
|
NormalizeLineSeparatorReader.LineSeparator.MatchResult |
matches(char currentCharacter, Character previousCharacter) Checks if two given characters match the line separator represented by this object. |
Checks if two given characters match the line separator represented by this object.
currentCharacter
- the character to check againstpreviousCharacter
- optional previous character (may be null
)Groovy Documentation