Returns a string value from a string_view. Warning: the caller is responsible for the lifecycle of the backing string. Prefer CreateString instead.
| 202 | // responsible for the lifecycle of the backing string. Prefer CreateString |
| 203 | // instead. |
| 204 | static CelValue CreateStringView(absl::string_view value) { |
| 205 | return CelValue(StringHolder(value)); |
| 206 | } |
| 207 | |
| 208 | static CelValue CreateString(const std::string* str) { |
| 209 | return CelValue(StringHolder(str)); |