static */
| 486 | |
| 487 | /* static */ |
| 488 | bool DeviceNameUtils::ParseLocalName(StringPiece name, ParsedName* p) { |
| 489 | if (!ConsumeDeviceType(&name, &p->type)) { |
| 490 | return false; |
| 491 | } |
| 492 | p->has_type = true; |
| 493 | if (!absl::ConsumePrefix(&name, ":")) { |
| 494 | return false; |
| 495 | } |
| 496 | if (!ConsumeNumber(&name, &p->id)) { |
| 497 | return false; |
| 498 | } |
| 499 | p->has_id = true; |
| 500 | return name.empty(); |
| 501 | } |
| 502 | |
| 503 | /* static */ |
| 504 | bool DeviceNameUtils::SplitDeviceName(StringPiece name, string* task, |
nothing calls this directly
no test coverage detected