PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | List of all members
PIStringContextTrNoOp Class Reference

Context-aware string wrapper that preserves original strings without translation (no-op). Helper returned by operator""_trNoOp that keeps source text unchanged. More...

#include <pitranslator.h>

Public Member Functions

 PIStringContextTrNoOp (PIString &&s)
 Stores source string without translating it.
 
 operator PIString () const
 Returns stored string unchanged.
 
PIString operator() (const PIString &ctx={}) const
 Returns stored string unchanged and ignores "ctx".
 

Detailed Description

Context-aware string wrapper that preserves original strings without translation (no-op). Helper returned by operator""_trNoOp that keeps source text unchanged.