Package hydra.lib.chars
Class IsSpace
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.chars.IsSpace
Determines whether a character is whitespace.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
IsSpace
public IsSpace()
-
-
Method Details
-
name
Gets the qualified name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name "hydra.lib.chars.isSpace"
-
type
Gets the type scheme for this function.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme representing int32 to boolean function
-
implementation
Provides the implementation of this primitive function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- a function that takes a list of terms and returns a flow producing a boolean term
-
apply
public static boolean apply(int codePoint) Checks whether the given code point is whitespace.- Parameters:
codePoint- the Unicode code point to test- Returns:
- true if the code point is whitespace, false otherwise
-