> This page is for version 5.0 (Latest) (default).
> For other versions, use one of these documentation indexes:
> - 5.0 (Latest) (default): https://docs.nvidia.com/holoscan/sdk-user-guide/5-0-latest/llms.txt
> - ltsb-2.0: https://docs.nvidia.com/holoscan/sdk-user-guide/ltsb-2-0/llms.txt
> - 4.6: https://docs.nvidia.com/holoscan/sdk-user-guide/4-6/llms.txt
> - 4.5: https://docs.nvidia.com/holoscan/sdk-user-guide/4-5/llms.txt
> - 4.4: https://docs.nvidia.com/holoscan/sdk-user-guide/4-4/llms.txt
> - 4.3: https://docs.nvidia.com/holoscan/sdk-user-guide/4-3/llms.txt
> - Archives: https://docs.nvidia.com/holoscan/sdk-user-guide/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/holoscan/sdk-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/holoscan/sdk-user-guide/_mcp/server.

# holoscan::detail::validate_param_string

> Check a string field's byte bound, then its encoding.

```cpp showLineNumbers={false}
HOLOSCAN_CORE_EXPORT ParamValidationResult holoscan::detail::validate_param_string(
    std::string_view value,
    const ParamFieldDescriptor &descriptor
) noexcept
```

Check a string field's byte bound, then its encoding.

**Returns:** Success, `kCardinalityExceeded`, or `kInvalidEncoding`.

**Parameters**

**`value`** `std::string_view`

String field value.

---

**`descriptor`** `const ParamFieldDescriptor &`

Field whose constraints and encoding apply.

---