htcc-0.0.0.1: The full scratch implementation of tiny C compiler (x86_64)
Copyright(c) roki 2019
LicenseMIT
Maintainerfalgon53@yahoo.co.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Htcc.Utils.Text

Description

Text utilities

Synopsis

For Data.Text

tshow :: Show a => a -> Text Source #

Convert Show class instance to Text.

spanLenT :: (Char -> Bool) -> Text -> (Int, Text, Text) Source #

Text version of the spanLen.

subTextIndex :: Text -> Text -> Maybe Int Source #

subTextIndex searches text for a substring of text and returns its starting position. If nothing is found, Nothing is returned.