UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TJsonPrintPolicy< InCharType > Struct Template Reference

#include <JsonPrintPolicy.h>

+ Inheritance diagram for TJsonPrintPolicy< InCharType >:

Public Types

using CharType = InCharType
 

Public Member Functions

void WriteString (FArchive *Stream, FStringView String)
 

Static Public Member Functions

static void WriteChar (FArchive *Stream, CharType Char)
 
static void WriteString (FArchive *Stream, FStringView String)
 
static void WriteString (FArchive *Stream, FUtf8StringView String)
 
static void WriteFloat (FArchive *Stream, float Value)
 
static void WriteDouble (FArchive *Stream, double Value)
 

Detailed Description

template<class InCharType>
struct TJsonPrintPolicy< InCharType >

Base template for Json print policies.

Parameters
CharTypeThe type of characters to print, i.e. TCHAR or ANSICHAR.

Member Typedef Documentation

◆ CharType

template<class InCharType >
using TJsonPrintPolicy< InCharType >::CharType = InCharType

Member Function Documentation

◆ WriteChar()

template<class InCharType >
static void TJsonPrintPolicy< InCharType >::WriteChar ( FArchive Stream,
CharType  Char 
)
inlinestatic

Writes a single character to the output stream.

Parameters
StreamThe stream to write to.
CharThe character to write.

◆ WriteDouble()

template<class InCharType >
static void TJsonPrintPolicy< InCharType >::WriteDouble ( FArchive Stream,
double  Value 
)
inlinestatic

Writes a double to the output stream.

Parameters
StreamThe stream to write to.
ValueThe double to write.

◆ WriteFloat()

template<class InCharType >
static void TJsonPrintPolicy< InCharType >::WriteFloat ( FArchive Stream,
float  Value 
)
inlinestatic

Writes a float to the output stream.

Parameters
StreamThe stream to write to.
ValueThe float to write.

◆ WriteString() [1/3]

template<class InCharType >
static void TJsonPrintPolicy< InCharType >::WriteString ( FArchive Stream,
FStringView  String 
)
inlinestatic

Writes a string to the output stream.

Parameters
StreamThe stream to write to.
StringThe string to write.

◆ WriteString() [2/3]

void TJsonPrintPolicy< UTF16CHAR >::WriteString ( FArchive Stream,
FStringView  String 
)
inline

Specialization for UTF16CHAR that writes FString data UTF-16.

◆ WriteString() [3/3]

template<class InCharType >
static void TJsonPrintPolicy< InCharType >::WriteString ( FArchive Stream,
FUtf8StringView  String 
)
inlinestatic

Writes a utf8 string to the output stream.

Parameters
StreamThe stream to write to.
StringThe string to write.

The documentation for this struct was generated from the following file: