Module
StringParser.CodePoints
- Package
- purescript-string-parsers
- Repository
- purescript-contrib/purescript-string-parsers
Primitive parsers for strings, parsing based on code points.
These functions will be much slower than the CodeUnits
alternatives, but
will behave correctly in the presence of Unicode characters made up of
multiple code units.
#anyCodePoint Source
anyCodePoint :: Parser CodePoint
Match any code point.
#satisfyCodePoint Source
satisfyCodePoint :: (CodePoint -> Boolean) -> Parser CodePoint
Match a code point satisfying the given predicate.
#whiteSpace Source
whiteSpace :: Parser String
Match many whitespace characters.
#skipSpaces Source
skipSpaces :: Parser Unit
Skip many whitespace characters.
#lowerCaseChar Source
lowerCaseChar :: Parser Char
Match any lower case character.
#upperCaseChar Source
upperCaseChar :: Parser Char
Match any upper case character.