Duke's Big Numbers 1.0
C++ and Blueprint libraries for performing math, analysis, and formatting with really large numbers (>10e308).
|
#include "GroupLabeler.h"
Public Member Functions | |
FString | GetGroupLabel (int32 powerOfTen) const |
FString & | AppendGroupLabel (int32 PowerOfTen, UPARAM(ref) FString &AppendTo, int32 &Remainder) const |
virtual int32 | OnAppendGroupLabel (int32 powerOfTen, FString &string) const |
FString | GetSeparatorBefore () const |
void | SetSeparatorBefore (const FString &value) |
Protected Attributes | |
FString | SeparatorBefore |
Provides a contract for allowing digit group labelers for Scaling Formatters to be interchanged Implement a subclass of this to create a fully controllable scaling group labeler that can be plugged into a Scaling Formatter.
|
Flavor:Blueprint |
Appends the group label for the specified powerOfTen into string, and returns any remaining power of ten. Also appends SeparatorBefore prior to appending the group label, if appropriate.
PowerOfTen | The power of ten for which to get the label |
AppendTo | The string to append the group label to |
Remainder | On return, contains any remaining power of ten beyond the closest label (see below) |
S& ← lbl BG I4 S& I4&
|
Flavor:Instance |
Gets the group label for the specified powerOfTen
powerOfTen | The power of ten for which to get the label |
S ← lbl BG I4
|
Flavor:Instance |
Gets the separator string that is applied before the group label.
S ← gosb BG
|
virtualFlavor:Instance |
Provides implementation for appending the group label for the specified powerOfTen into string, and returning any remaining power of ten.
powerOfTen | The power of ten for which to get the label |
string | The string to append the group label to |
I4 ← lbl BG I4 S&
Reimplemented in UCustomGroupLabeler, UNamedGroupLabeler, UScientificGroupLabeler, and USIUnitsGroupLabeler.
|
Flavor:Instance |
Sets the separator string that is applied before the group label.
value | the separator string that is applied before the group label. |
0 ← sosb BG S
|
protected |
Controls the separator string that is applied before the group label.