Ustrupper() — Convert Unicode string to …
Title
ustrupper( ) -- Convert Unicode string to uppercase, lowercase, or titlecase
Description Diagnostics
Syntax Also see
Remarks and examples
Conformability
Description
ustrupper(s , loc ) converts the characters in Unicode string s to uppercase under the given locale loc. If loc is not specified, the locale functions setting is used. The result can be longer or shorter than the input string; for example, the uppercase form of the German letter ? (code point \u00df) is two capital letters "SS". The same s but different loc can produce different results; for example, the uppercase letter "i" is "I" in English, but it is "I" with a dot in Turkish.
ustrlower(s , loc ) converts the characters in Unicode string s to lowercase under the given locale loc. If loc is not specified, the locale functions setting is used. The result can be longer or shorter than the input Unicode string in bytes. The same s but different loc can produce different results; for example, the lowercase letter of "I" is "i" in English, but it is "i" without a dot in Turkish. The same Unicode character can be mapped to different Unicode characters based on its surrounding characters; for example, Greek capital letter sigma, , has two lowercase alternatives: or, if it is the final character of a word, .
ustrtitle(s , loc ) converts the Unicode words in string s to titlecase. Note that a Unicode word is different from the space-delimited words produced by function word(). A Unicode word is a language unit based on either a set of word-boundary rules or dictionaries for some languages (Chinese, Japanese, and Thai). The titlecase is also locale dependent and context sensitive; for example, lowercase "ij" in titlecase form is "IJ" in Dutch, but it is "Ij" in English. If loc is not specified, the locale functions setting is used.
When s is not a scalar, these functions return element-by-element results.
Syntax
string matrix ustrupper(string matrix s , string scalar loc ) string matrix ustrlower(string matrix s , string scalar loc ) string matrix ustrtitle(string matrix s , string scalar loc )
Remarks and examples
Use functions strupper() and strlower() to convert only ASCII letters to uppercase and lowercase.
Conformability
ustrupper(s , loc ), ustrlower(s , loc ), ustrtitle(s , loc ):
1
2 ustrupper( ) -- Convert Unicode string to uppercase, lowercase, or titlecase
s: result:
r?c r?c
Diagnostics
ustrupper(s , loc ), ustrlower(s , loc ), and ustrtitle(s , loc ) return an empty string if an error occurs.
Also see
[M-5] strupper( ) -- Convert ASCII letter to uppercase (lowercase) [M-4] String -- String manipulation functions [U] 12.4.2.2 Displaying Unicode characters
Stata, Stata Press, and Mata are registered trademarks of StataCorp LLC. Stata and
Stata Press are registered trademarks with the World Intellectual Property Organization
?
of the United Nations. StataNow and NetCourseNow are trademarks of StataCorp
LLC. Other brand and product names are registered trademarks or trademarks of their
respective companies. Copyright c 1985?2023 StataCorp LLC, College Station, TX,
USA. All rights reserved.
For suggested citations, see the FAQ on citing Stata documentation.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- text processing in java characters and strings
- using lexical tools to convert unicode characters
- ustrupper — convert unicode string to
- the character set of c source code is unicode
- utf 16 and c c language unicode
- tab to unicode conversion
- characters and strings gordon college
- characters and strings
- sequences strings lists and files
- convert pdf to text using c
Related searches
- excel convert date string to date
- convert python string to bytes
- python convert hex string to int
- convert hex string to int
- python convert list string to float
- sql convert date string to datetime
- convert a string to a list
- convert a string to a number java
- convert text string to formula
- c convert std string to int
- convert python string to date
- convert binary string to int