@FunctionalInterface public interface StopCharTester
Modifier and Type | Method and Description |
---|---|
default @NotNull StopCharTester |
escaping()
Returns a new instance that respects escape characters.
|
boolean |
isStopChar(int ch)
Tests if the provided character should be regarded as a stop character during a string parsing operation.
|
boolean isStopChar(int ch)
Note: For safety reasons, a character of value 0 should either return true (i.e., be considered a stop character) or throw an IllegalStateException. This is to prevent issues with null-terminated strings.
ch
- the character to be tested. If ch is 0, the method should return true or throw an exception.@NotNull default @NotNull StopCharTester escaping()
Copyright © 2023. All rights reserved.