Stability | alpha |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Utility functions for parsing IRC messages.
- isChannelChar :: Char -> Bool
- isChanPwdChar :: Char -> Bool
- isCommandChar :: Char -> Bool
- isHostChar :: Char -> Bool
- isIRCEOLChar :: Char -> Bool
- isIRCTokChar :: Char -> Bool
- isMessageChar :: Char -> Bool
- isNickChar :: Char -> Bool
- isServerChar :: Char -> Bool
- isUserChar :: Char -> Bool
- isUserSpecChar :: Char -> Bool
- parseComplete :: Parser a -> ByteString -> Maybe a
Character predicates for IRC
isChannelChar :: Char -> BoolSource
Character predicate for channel names.
isChanPwdChar :: Char -> BoolSource
Character predicate for channel passwords.
isCommandChar :: Char -> BoolSource
Character predicate for IRC commands.
isHostChar :: Char -> BoolSource
Character predicate for IRC user hostnames. In the string x!y@z
the substring z
is the user's hostname.
isIRCEOLChar :: Char -> BoolSource
Character predicate for IRC end of line characters.
isIRCTokChar :: Char -> BoolSource
Character predicate for IRC tokens.
isMessageChar :: Char -> BoolSource
Character predicate for IRC messages.
isNickChar :: Char -> BoolSource
Character predicate for IRC nicknames. This function considers high bytes (0x80 to 0xFF) and most nonstandard ASCII bytes as valid, because most modern IRC daemons allow nonstandard nicknames.
isServerChar :: Char -> BoolSource
Character predicate for IRC servers.
isUserChar :: Char -> BoolSource
Character predicate for IRC usernames. In the string x!y@z
the
substring y
is the user's username.
isUserSpecChar :: Char -> BoolSource
Character predicate for nicknames, usernames and hostnames.
Other helper functions
parseComplete :: Parser a -> ByteString -> Maybe aSource
Run a parser completely.