Decide whether the given rune is in the XML Character Range, per the Char production of https://www.xml.com/axml/testaxml.htm, Section 2.2 Characters.
(r rune)
| 1147 | // the Char production of https://www.xml.com/axml/testaxml.htm, |
| 1148 | // Section 2.2 Characters. |
| 1149 | func isInCharacterRange(r rune) (inrange bool) { |
| 1150 | return r == 0x09 || |
| 1151 | r == 0x0A || |
| 1152 | r == 0x0D || |
| 1153 | r >= 0x20 && r <= 0xD7FF || |
| 1154 | r >= 0xE000 && r <= 0xFFFD || |
| 1155 | r >= 0x10000 && r <= 0x10FFFF |
| 1156 | } |
| 1157 | |
| 1158 | // Get name space name: name with a : stuck in the middle. |
| 1159 | // The part before the : is the name space identifier. |
no outgoing calls
no test coverage detected