Transcription of Title stata.com String functions
{{id}} {{{paragraph}}}
FunctionsContentsFunctionsReferencesAlso seeContentsabbrev(s,n)names, abbreviated to a length ofnchar(n)the character corresponding toASCIIor extendedASCII coden;""ifnis not in the domaincollatorlocale(loc,type)the most closely related locale supported byICUfromlociftypeis1; the actual locale where the collation data comes from iftypeis2collatorversion(loc)the version String of a collator based on localelocindexnot(s1,s2)the position inASCII strings1of the first character ofs1not foundinASCII strings2, or0if all characters ofs1are found ins2plural(n,s)the plural ofsifn6= 1plural(n,s1,s2)the plural ofs1, as modified by or replaced withs2, ifn6= 1real(s)sconverted to numeric ormissingregexm(s,re)performs a match of a regular expression and evaluates to1if regularexpressionreis satisfied by theASCII strings.
strltrim(s) swithout leading blanks (ASCII space character char(32)) strmatch(s 1,s 2)1if s 1 matches the pattern s 2; otherwise, 0 strofreal(n) nconverted to a string strofreal(n,s) nconverted to a string using the specified display format strpos(s 1,s 2) the position in s 1 at which s 2 is first found, 0if s 2 does not occur,
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}