Ascii() — Manipulate ASCII and byte codes - Stata
Title
ascii( ) -- Manipulate ASCII and byte codes
Description Syntax Conformability Diagnostics Also see
Description
ascii(s) returns a row vector containing the ASCII codes (0?127) and byte codes (128?255) corresponding to s. For instance, ascii("abc") returns (97, 98, 99); ascii("caf?e") returns (99, 97, 102, 195, 169). Note that the Unicode character "e?" is beyond ASCII range. Its UTF-8 encoding requires 2 bytes and their byte values are 195 and 169.
char(c) returns a UTF-8 encoded string consisting of the specified ASCII and byte codes. For instance, char((97, 98, 99)) returns "abc", and char((99, 97, 102, 195, 169)) returns "caf?e".
Syntax
real rowvector ascii(string scalar s) string scalar char(real rowvector c)
Conformability
ascii(s): s:
result:
char(c): c:
result:
1?1 1 ? strlen(s)
1 ? n, n 0 1?1
Diagnostics
ascii(s) returns J(1,0,.) if strlen(s)==0. In char(c), if any element of c is outside the range 0 to 255, the returned string is terminated at that point. For instance, char((97,98,99,1000,97,98,99))="abc". char(J(1,0,.)) returns "".
Also see
[M-5] uchar( ) -- Convert code point to Unicode character [M-4] string -- String manipulation functions
1
................
................
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
- unicode characters and utf 8 city university of new york
- c examples princeton university
- filefilter — convert ascii or binary patterns in a file stata
- logix 5000 controllers ascii strings publication 1756 pm013h en p
- ascii character set and hexadecimal values cisco
- characters ascii code department of computer science
- ascii table 101 computing
- what is ascii and how is it used to convert numbers and letters into
- the unicode standard version 15
- ascii — manipulate ascii and byte codes stata
Related searches
- how to manipulate a psychopath
- how to manipulate a narcissist
- ascii codes for symbols
- ascii codes for special characters
- ascii character codes alt key
- how to manipulate an independent variable
- product and service codes naics
- manipulate sig figs for calculations properly
- cpt and hcpcs codes lookup
- manipulate someone to one s advantage
- billing and coding codes icd 10
- billing and coding codes search