Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
Loading...
Searching...
No Matches
UHexadecimalInvariantFormatter Class Reference

#include "HexadecimalInvariantFormatter.h"

Public Member Functions

 UHexadecimalInvariantFormatter ()
 
virtual int32 GetRadix () const override
 
virtual void OnAppendToString (const FBigInteger &number, FString &string) const override
 
- Public Member Functions inherited from UBigIntegerFormatter
FString ToString (const FBigInteger &Number) const
 
FString & AppendToString (const FBigInteger &Number, UPARAM(ref) FString &String) const
 
virtual int32 GetRadix () const
 
virtual void OnAppendToString (const FBigInteger &number, FString &string) const
 

Static Public Member Functions

static FString ToInvariantString (const FBigInteger &number)
 
static void AppendInvariantToString (const FBigInteger &number, FString &string)
 
static UHexadecimalInvariantFormatterGetDefault ()
 

Detailed Description

Provides very fast, no-frills hexadecimal formatting of BigIntegers to strings. Format is suitable for serialization.

Constructor & Destructor Documentation

◆ UHexadecimalInvariantFormatter()

DBN_FORCEINLINE UHexadecimalInvariantFormatter::UHexadecimalInvariantFormatter ( )
Flavor:Constructor

Creates a new UHexadecimalInvariantFormatter

Implements Opcode:
Flavor:Constructor HF ← hf 0

Member Function Documentation

◆ AppendInvariantToString()

static void UHexadecimalInvariantFormatter::AppendInvariantToString ( const FBigInteger number,
FString &  string 
)
staticFlavor:Static

Formats the number, appending it to the provided string

Parameters
numberThe value to be formatted
stringThe string that the value should be formatted into
Implements Opcode:
Flavor:Instance 0 ← str BF BI S&
Implements Opcode:
Flavor:Static 0 ← strh BI S&

◆ GetDefault()

DBN_FORCEINLINE UHexadecimalInvariantFormatter * UHexadecimalInvariantFormatter::GetDefault ( )
staticFlavor:Static

Gets the default instance of this type of formatter

Returns
the default instance of this type of formatter
Implements Opcode:
Flavor:Static HF ← fmth 0

◆ GetRadix()

DBN_FORCEINLINE int32 UHexadecimalInvariantFormatter::GetRadix ( ) const
overridevirtualFlavor:Instance

Gets the main radix used by the format

Returns
the main radix used by the format
Implements Opcode:
Flavor:Instance I4 ← rad HF

Reimplemented from UBigIntegerFormatter.

◆ OnAppendToString()

DBN_FORCEINLINE void UHexadecimalInvariantFormatter::OnAppendToString ( const FBigInteger number,
FString &  string 
) const
overridevirtualFlavor:Instance

Formats the number, appending it to the provided string

Parameters
numberThe value to be formatted
stringThe string that the value should be formatted into
Implements Opcode:
Flavor:Instance 0 ← str BF BI S&
Implements Opcode:
Flavor:Instance 0 ← str HF BI S&

Reimplemented from UBigIntegerFormatter.

◆ ToInvariantString()

DBN_FORCEINLINE FString UHexadecimalInvariantFormatter::ToInvariantString ( const FBigInteger number)
staticFlavor:Static

Formats the number into a new string in Hexadecimal Invariant Notation

Parameters
numberThe value to be formatted
Returns
A new string containing the formatted value
Implements Opcode:
Flavor:Static S ← strh BI

The documentation for this class was generated from the following files: