| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Text.Regex.Do.Match.Utf8
Description
see Text.Regex.Do.Match.Latin for API changes
toByteString converts String to utf8 ByteString     
Documentation
class MatchOnce pattern body out where Source #
pattern:
String,ByteString,RegexcompileRegexwithUtf8optString | ByteString pattern may contains regex
- body:  
String,ByteString out: out | E out
Bool: test if regex matches- [
String] - [
ByteString] - [
PosLen] 
Instances
| RegexLike Regex b => MatchOnce Regex b Bool Source # | b:  always succeeds  | 
| MatchOnce String String (E Bool) Source # | test 
 Right True  | 
| MatchOnce String String (E [String]) Source # | 
 Right ["熱"]  | 
| MatchOnce String String (E [PosLen]) Source # | |
| MatchOnce ByteString ByteString (E Bool) Source # | |
Defined in Text.Regex.Do.Match.Utf8 Methods (~?) :: ByteString -> ByteString -> E Bool Source #  | |
| MatchOnce ByteString ByteString (E [ByteString]) Source # | |
Defined in Text.Regex.Do.Match.Utf8 Methods (~?) :: ByteString -> ByteString -> E [ByteString] Source #  | |
| MatchOnce ByteString ByteString (E [PosLen]) Source # | |
Defined in Text.Regex.Do.Match.Utf8 Methods (~?) :: ByteString -> ByteString -> E [PosLen] Source #  | |
| RegexLike Regex b => MatchOnce Regex b [PosLen] Source # | b:  always succeeds  | 
| RegexLike Regex b => MatchOnce Regex b [b] Source # | b:  always succeeds precompiled regex as patternlet Right rx1 = makeRegexOpt (toByteString "左") [Utf8] []      --  add options as needed
    m1 = rx1 ~? (toByteString "100メートル左折後、左")::[ByteString]
m1  | 
Defined in Text.Regex.Do.Match.Utf8  | |
class MatchAll pattern body out where Source #
- pattern:  
String,ByteString,RegexcompileRegexwithUtf8opt - body:  
String,ByteString out:
- [[
String]] - [[
ByteString]] - [[
PosLen]] 
- [[
 
Instances
| MatchAll String String (E [[String]]) Source # | 
 Right [["лес"],["лес"]]  | 
| MatchAll String String (E [[PosLen]]) Source # | |
| MatchAll ByteString ByteString (E [[ByteString]]) Source # | |
Defined in Text.Regex.Do.Match.Utf8 Methods (~*) :: ByteString -> ByteString -> E [[ByteString]] Source #  | |
| MatchAll ByteString ByteString (E [[PosLen]]) Source # | |
Defined in Text.Regex.Do.Match.Utf8 Methods (~*) :: ByteString -> ByteString -> E [[PosLen]] Source #  | |
| RegexLike Regex b => MatchAll Regex b [[PosLen]] Source # | b:  always succeeds  | 
| RegexLike Regex b => MatchAll Regex b [[b]] Source # | b:  always succeeds  | 
Defined in Text.Regex.Do.Match.Utf8  | |
extract :: Extract source => (Int, Int) -> source -> source #
extract takes an offset and length and has a default
 implementation of extract (off,len) source = before len (after
 off source)
extract is reexport from Text.Regex.Base.RegexLike