| 403 | } |
| 404 | |
| 405 | bool IsShort(const std::string &code) { |
| 406 | // Check it's valid. |
| 407 | if (!IsValid(code)) { |
| 408 | return false; |
| 409 | } |
| 410 | // If there are less characters than expected before the SEPARATOR. |
| 411 | if (code.find(internal::kSeparator) < internal::kSeparatorPosition) { |
| 412 | return true; |
| 413 | } |
| 414 | return false; |
| 415 | } |
| 416 | |
| 417 | bool IsFull(const std::string &code) { |
| 418 | if (!IsValid(code)) { |
no test coverage detected