| 395 | } |
| 396 | |
| 397 | static String8 build_namespace(const Vector<namespace_entry>& namespaces, |
| 398 | const uint16_t* ns) |
| 399 | { |
| 400 | String8 str; |
| 401 | if (ns != NULL) { |
| 402 | str = String8(ns); |
| 403 | const size_t N = namespaces.size(); |
| 404 | for (size_t i=0; i<N; i++) { |
| 405 | const namespace_entry& ne = namespaces.itemAt(i); |
| 406 | if (ne.uri == str) { |
| 407 | str = ne.prefix; |
| 408 | break; |
| 409 | } |
| 410 | } |
| 411 | str.append(":"); |
| 412 | } |
| 413 | return str; |
| 414 | } |
| 415 | |
| 416 | void printXMLBlock(ResXMLTree* block) |
| 417 | { |
no test coverage detected