Skip to content

purescript/purescript-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Documentation

Module Data.Char

Types

Char

newtype Char

Type Class Instances

eqChar

instance eqChar :: Eq Char

ordChar

instance ordChar :: Ord Char

showChar

instance showChar :: Show Char

Values

charString

charString :: Char -> String

fromCharCode

fromCharCode :: Number -> Char

toCharCode

toCharCode :: Char -> Number

Module Data.String

Values

charAt

charAt :: Number -> String -> Maybe Char

charCodeAt

charCodeAt :: Number -> String -> Maybe Number

count

count :: (Char -> Boolean) -> String -> Number

drop

drop :: Number -> String -> String

dropWhile

dropWhile :: (Char -> Boolean) -> String -> String

fromChar

fromChar :: Char -> String

fromCharArray

fromCharArray :: [Char] -> String

indexOf

indexOf :: String -> String -> Number

indexOf'

indexOf' :: String -> Number -> String -> Number

joinWith

joinWith :: String -> [String] -> String

lastIndexOf

lastIndexOf :: String -> String -> Number

lastIndexOf'

lastIndexOf' :: String -> Number -> String -> Number

length

length :: String -> Number

localeCompare

localeCompare :: String -> String -> Number

null

null :: String -> Boolean

replace

replace :: String -> String -> String -> String

singleton

singleton :: Char -> String

split

split :: String -> String -> [String]

take

take :: Number -> String -> String

takeWhile

takeWhile :: (Char -> Boolean) -> String -> String

toCharArray

toCharArray :: String -> [Char]

toLower

toLower :: String -> String

toUpper

toUpper :: String -> String

trim

trim :: String -> String

uncons

uncons :: String -> Maybe { tail :: String, head :: Char }

Module Data.String.Regex

Types

Regex

data Regex :: *

RegexFlags

type RegexFlags = { unicode :: Boolean, sticky :: Boolean, multiline :: Boolean, ignoreCase :: Boolean, global :: Boolean }

Type Class Instances

showRegex

instance showRegex :: Show Regex

Values

flags

flags :: Regex -> RegexFlags

match

match :: Regex -> String -> Maybe [String]

noFlags

noFlags :: RegexFlags

parseFlags

parseFlags :: String -> RegexFlags

regex

regex :: String -> RegexFlags -> Regex

renderFlags

renderFlags :: RegexFlags -> String

replace

replace :: Regex -> String -> String -> String

replace'

replace' :: Regex -> (String -> [String] -> String) -> String -> String

search

search :: Regex -> String -> Number

source

source :: Regex -> String

split

split :: Regex -> String -> [String]

test

test :: Regex -> String -> Boolean

Module Data.String.Unsafe

Values

charAt

charAt :: Number -> String -> Char

charCodeAt

charCodeAt :: Number -> String -> Number

About

String utility functions, Char type, regular expressions.

Resources

License

Stars

Watchers

Forks

Contributors 44