| 22 | namespace impala { |
| 23 | |
| 24 | StringValue StrValFromCString(const char* str, int len) { |
| 25 | if (len == -1) len = strlen(str); |
| 26 | return StringValue(const_cast<char*>(str), len); |
| 27 | } |
| 28 | |
| 29 | // Test string search for haystack/needle, up to len for each. |
| 30 | // If the length is -1, use the full string length. |
no test coverage detected