Mr.Docs The C++ Alliance GitHub Repo
  • Mr.Docs
  • Reference
  • mrdocs
  • dom
  • stringOrNull-04
master develop 2026.9.29 2026.9.4 v0.8.0
Mr.Docs The C++ Alliance GitHub Repo

Mr.Docs

    • Getting Started
      • Demo Gallery
      • Installation
      • Basic Usage
      • Migration Notes
    • Commands
      • Overview
      • Block Commands
      • Metadata Commands
      • Inline Commands
      • Reference
    • Configuration
      • Overview
      • Inputs
      • Filters
      • Extraction
      • Output
      • Diagnostics
      • Reference
    • Generators
      • Overview
      • HTML
      • AsciiDoc
      • JSON
      • XML
      • No-op
      • Reference
    • Extensions
      • Overview
      • Handlebars Extensions
      • Data-Driven Generators
      • Corpus Transforms
      • Script Generators
      • Antora Extensions
      • Mr.Docs as a Library
      • Script Engines
      • Library Reference
    • Contribute
      • Contributor Quickstart
      • Workflow & PR hygiene
      • Testing & fixtures
      • Options & architecture
      • Codebase tour
      • Docs changes

mrdocs::dom::stringOrNull

Return a non‐empty string, or a null.

Synopses

Declared in <mrdocs/Dom/Value.hpp>

Return a non‐empty string, or a null.

Value
stringOrNull(std::string_view s);

» more...

Return a non‐empty string, or a null.

Value
stringOrNull(std::string const& s);

» more...

Parameters

Name

Description

s

The string to check.

Created with MrDocs