substring

Navigation submode used for substring search. It returns to the first argument navigation style when the user hits Return.
SUBSTRING_ERROR: 22011 (Error)
Not on Stackage, so not searched. Match / replace substrings with a parser combinators.
Break a string on a substring, returning a pair of the part of the string prior to the match, and the rest of the string. The following relationships hold:
break (== c) l == breakSubstring (singleton c) l
For example, to tokenise a string, dropping delimiters:
tokenise x y = h : if null t then [] else tokenise x (drop (length x) t)
where (h,t) = breakSubstring x y
To skip to the first occurrence of a string:
snd (breakSubstring x y)
To take the parts of a string before a delimiter:
fst (breakSubstring x y)
Note that calling `breakSubstring x` does some preprocessing work, so you should avoid unnecessarily duplicating breakSubstring calls with the same pattern.
Break a string on a substring, returning a pair of the part of the string prior to the match, and the rest of the string. The following relationships hold:
break (== c) l == breakSubstring (singleton c) l
For example, to tokenise a string, dropping delimiters:
tokenise x y = h : if null t then [] else tokenise x (drop (length x) t)
where (h,t) = breakSubstring x y
To skip to the first occurrence of a string:
snd (breakSubstring x y)
To take the parts of a string before a delimiter:
fst (breakSubstring x y)
Note that calling `breakSubstring x` does some preprocessing work, so you should avoid unnecessarily duplicating breakSubstring calls with the same pattern.
Does a case-insensitive substring search by package name. That is, all packages that contain the given string in their name.
Break a string on a substring, returning a pair of the part of the string prior to the match, and the rest of the string. The following relationships hold:
break (== c) l == breakSubstring (singleton c) l
and:
findSubstring s l ==
if null s then Just 0
else case breakSubstring s l of
(x,y) | null y    -> Nothing
| otherwise -> Just (length x)
For example, to tokenise a string, dropping delimiters:
tokenise x y = h : if null t then [] else tokenise x (drop (length x) t)
where (h,t) = breakSubstring x y
To skip to the first occurence of a string:
snd (breakSubstring x y)
To take the parts of a string before a delimiter:
fst (breakSubstring x y)
Note that calling `breakSubstring x` does some preprocessing work, so you should avoid unnecessarily duplicating breakSubstring calls with the same pattern.
Copies a substring out of a UTF-8 encoded string. The substring will contain endPos - startPos characters. Since GLib 2.72, -1 can be passed to endPos to indicate the end of the string. Since: 2.30
The search string must be contained as a substring inside the text.
Makes a substring of text visible on the screen by scrolling all necessary parents. Since: 2.32
Move the top-left of a substring of text to a given position of the screen by scrolling all necessary parents. Since: 2.32
Get the first index of a substring in another string, or Nothing if the string is not found. findSubstring p s is equivalent to listToMaybe (findSubstrings p s).
Find the indexes of all (possibly overlapping) occurences of a substring in a string.
Does a case-insensitive substring search by package name. That is, all packages that contain the given string in their name.