package server-reason-react

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Js.StringSource

JavaScript String API

Sourcetype t = string
Sourceval make : 'a -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval fromCharCode : int -> t
Sourceval fromCharCodeMany : int array -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval fromCodePoint : int -> t
Sourceval fromCodePointMany : int array -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval length : t -> int
Sourceval get : t -> int -> t
Sourceval charAt : index:int -> t -> t
Sourceval charCodeAt : index:int -> t -> float
Sourceval codePointAt : index:int -> t -> int option
Sourceval concat : other:t -> t -> t
Sourceval concatMany : strings:t array -> t -> t
Sourceval endsWith : suffix:t -> ?len:int -> t -> bool
Sourceval includes : search:t -> ?start:int -> t -> bool
Sourceval indexOf : search:t -> ?start:int -> t -> int
Sourceval lastIndexOf : search:t -> ?start:int -> t -> int
Sourceval localeCompare : other:t -> t -> float
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval match_ : regexp:Js__.Js_re.t -> t -> t option array option
Sourceval normalize : ?form:[ `NFC | `NFD | `NFKC | `NFKD ] -> t -> t

Returns the Unicode Normalization Form of a string.

Sourceval repeat : count:int -> t -> t
Sourceval replace : search:t -> replacement:t -> t -> t
Sourceval replaceByRe : regexp:Js__.Js_re.t -> replacement:t -> t -> t
Sourceval unsafeReplaceBy0 : regexp:Js__.Js_re.t -> f:(t -> int -> t -> t) -> t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval unsafeReplaceBy1 : regexp:Js__.Js_re.t -> f:(t -> t -> int -> t -> t) -> t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval unsafeReplaceBy2 : regexp:Js__.Js_re.t -> f:(t -> t -> t -> int -> t -> t) -> t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval unsafeReplaceBy3 : regexp:Js__.Js_re.t -> f:(t -> t -> t -> t -> int -> t -> t) -> t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js

Searches for a match in a string. Returns the index of the first match, or -1 if not found.

Sourceval slice : ?start:int -> ?end_:int -> t -> t
Sourceval split : ?sep:t -> ?limit:int -> t -> t array
Sourceval splitByRe : regexp:Js__.Js_re.t -> ?limit:int -> t -> t option array
Sourceval startsWith : prefix:t -> ?start:int -> t -> bool
Sourceval substr : ?start:int -> ?len:int -> t -> t
Sourceval substring : ?start:int -> ?end_:int -> t -> t
Sourceval toLowerCase : t -> t
Sourceval toLocaleLowerCase : t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval toUpperCase : t -> t
Sourceval toLocaleUpperCase : t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
Sourceval trim : t -> t
Sourceval anchor : name:t -> t -> t
  • alert not_implemented is not implemented in native under server-reason-react.js
  • alert not_implemented is not implemented in native under server-reason-react.js