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
UDecimalInvariantFormatter Class Reference

#include "DecimalInvariantFormatter.h"

Public Member Functions

 UDecimalInvariantFormatter ()
 
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 UDecimalInvariantFormatterGetDefault ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ UDecimalInvariantFormatter()

UDecimalInvariantFormatter::UDecimalInvariantFormatter ( )
Flavor:Constructor

Creates a new UDecimalInvariantFormatter

Implements Opcode:
Flavor:Constructor DF ← df 0

Member Function Documentation

◆ AppendInvariantToString()

static void UDecimalInvariantFormatter::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 ← strd BI S&

◆ GetDefault()

DBN_FORCEINLINE UDecimalInvariantFormatter * UDecimalInvariantFormatter::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 DF ← fmtd 0

◆ OnAppendToString()

DBN_FORCEINLINE void UDecimalInvariantFormatter::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 DF BI S&

Reimplemented from UBigIntegerFormatter.

◆ ToInvariantString()

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

Formats the number into a new string in Decimal Invariant Notation

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

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