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

#include "BigIntegerFormatter.h"

Public Member Functions

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
 

Detailed Description

Provides a contract allowing Big Integer string formatters to be interchanged.

The caller of this interface need not worry about format specifiers or any of that with this interface - that is all taken care of when setting up the String Formatter object for use.

Member Function Documentation

◆ AppendToString()

DBN_FORCEINLINE FString & UBigIntegerFormatter::AppendToString ( const FBigInteger Number,
UPARAM(ref) FString &  String 
) const
Flavor:Blueprint

Formats the number, appending it to the provided string

Parameters
NumberThe value to be formatted
StringThe string that the value should be formatted into
Returns
A reference to the string that was appended to
Implements Opcode:
Flavor:Blueprint S& ← str BF BI S&

◆ GetRadix()

DBN_FORCEINLINE int32 UBigIntegerFormatter::GetRadix ( ) const
virtualFlavor:Instance

Gets the main radix used by the format

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

Reimplemented in UHexadecimalInvariantFormatter.

◆ OnAppendToString()

DBN_FORCEINLINE void UBigIntegerFormatter::OnAppendToString ( const FBigInteger number,
FString &  string 
) const
virtualFlavor: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&

Reimplemented in UDecimalFullFormatter, UDecimalInvariantFormatter, UDecimalScalingFormatter, and UHexadecimalInvariantFormatter.

◆ ToString()

DBN_FORCEINLINE FString UBigIntegerFormatter::ToString ( const FBigInteger Number) const
Flavor:Instance

Formats the number into a new string

Parameters
NumberThe value to be formatted
Returns
A new string containing the formatted value
Implements Opcode:
Flavor:Instance S ← str BF BI

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