| 143 | ); |
| 144 | |
| 145 | UINT32 |
| 146 | UnicodeStrLen ( |
| 147 | IN CHAR16 *String |
| 148 | ) |
| 149 | /*++ |
| 150 | |
| 151 | Routine Description: |
| 152 | |
| 153 | Returns the length of a null-terminated unicode string. |
| 154 | |
| 155 | Arguments: |
| 156 | |
| 157 | String - The pointer to a null-terminated unicode string. |
| 158 | |
| 159 | Returns: |
| 160 | |
| 161 | N/A |
| 162 | |
| 163 | --*/ |
| 164 | { |
| 165 | UINT32 Length; |
| 166 | |
| 167 | for (Length = 0; *String != L'\0'; String++, Length++) { |
| 168 | ; |
| 169 | } |
| 170 | return Length; |
| 171 | } |
| 172 | |
| 173 | VOID |
| 174 | Unicode2AsciiString ( |