Lines Matching +full:ascii +full:- +full:based
3 * Copyright (c) 2000-2003 Intel Corporation
4 * Copyright (c) 2006-2007 Sony Corporation
5 * Copyright (c) 2008-2009 Atheros Communications
22 * XML is a markup language based on unicode; usually (and in our case,
23 * always!) based on utf-8. utf-8 uses a variable number of bytes per
24 * character. utf-8 has the advantage that all non-ASCII unicode characters are
25 * represented by sequences of non-ascii (high bit set) bytes, whereas ASCII
26 * characters are single ascii bytes, thus we can use typical text processing.
28 * (One other interesting thing about utf-8 is that it is possible to look at
32 * The base syntax of XML uses a few ASCII punctionation characters; any
40 * matching label. (There is also a self-closing tag <label/> which is supposed
45 * contain "attributes" after the label (delimited by ascii space or tab chars)
62 * xml_next_tag - Advance to next tag
89 while (isalnum(*in) || *in == '-') in xml_next_tag()
102 /* xml_data_encode -- format data for xml file, escaping special characters.
106 * 0xxxxxxx(2) -- 1 byte ascii char
107 * 11xxxxxx(2) -- 1st byte of multi-byte char w/ unicode value >= 0x80
108 * 110xxxxx(2) -- 1st byte of 2 byte sequence (5 payload bits here)
109 * 1110xxxx(2) -- 1st byte of 3 byte sequence (4 payload bits here)
110 * 11110xxx(2) -- 1st byte of 4 byte sequence (3 payload bits here)
111 * 10xxxxxx(2) -- extension byte (6 payload bits per byte)
115 * text processing same as for ascii text.
156 /* xml_add_tagged_data -- format tagged data as a new xml line.
175 * <u:actionName xmlns:u="urn:schemas-upnp-org:service:serviceType:v">
216 value = os_zalloc(1 + (end - doc)); in xml_get_first_item()
219 os_memcpy(value, doc, end - doc); in xml_get_first_item()