#include <dt.h>
Definition at line 1149 of file dt.h.
TUInt::TUInt |
( |
const uint & |
_Val | ) |
|
|
inline |
TUInt::TUInt |
( |
TSIn & |
SIn | ) |
|
|
inlineexplicit |
static TStr TUInt::GetKiloStr |
( |
const uint & |
Val | ) |
|
|
inlinestatic |
static TStr TUInt::GetMegaStr |
( |
const uint & |
Val | ) |
|
|
inlinestatic |
Definition at line 1202 of file dt.h.
1204 else if (
Val>1000000){
static TStr GetKiloStr(const uint &Val)
int TUInt::GetMemUsed |
( |
| ) |
const |
|
inline |
Definition at line 1182 of file dt.h.
1182 {
return sizeof(
TUInt);}
int TUInt::GetPrimHashCd |
( |
| ) |
const |
|
inline |
static uint TUInt::GetRnd |
( |
const uint & |
Range = 0 | ) |
|
|
inlinestatic |
Definition at line 1187 of file dt.h.
uint GetUniDevUInt(const uint &Range=0)
int TUInt::GetSecHashCd |
( |
| ) |
const |
|
inline |
TStr TUInt::GetStr |
( |
| ) |
const |
|
inline |
static TStr TUInt::GetStr |
( |
const uint & |
Val | ) |
|
|
inlinestatic |
Definition at line 1190 of file dt.h.
1191 char Bf[255]; sprintf(Bf,
"%u",
Val);
return TStr(Bf);}
static TStr TUInt::GetStr |
( |
const TUInt & |
UInt | ) |
|
|
inlinestatic |
TStr TUInt::GetStr |
( |
const uint & |
Val, |
|
|
const char * |
FmtStr |
|
) |
| |
|
static |
Definition at line 2086 of file dt.cpp.
2091 sprintf(Bf, FmtStr,
Val);
static TStr TUInt::GetStr |
( |
const uint & |
Val, |
|
|
const TStr & |
FmtStr |
|
) |
| |
|
inlinestatic |
TStr TUInt::GetStrFromIpUInt |
( |
const uint & |
Ip | ) |
|
|
static |
Definition at line 2117 of file dt.cpp.
2118 return TStr::Fmt(
"%d.%d.%d.%d", ((Ip>>24) & 0xFF),
2119 ((Ip>>16) & 0xFF), ((Ip>>8) & 0xFF), (Ip & 0xFF));
static TStr Fmt(const char *FmtStr,...)
uint TUInt::GetUIntFromIpStr |
( |
const TStr & |
IpStr, |
|
|
const char & |
SplitCh = '.' |
|
) |
| |
|
static |
Definition at line 2107 of file dt.cpp.
2109 uint Ip = 0;
int Byte = 0;
static TStr Fmt(const char *FmtStr,...)
void SplitOnAllCh(const char &SplitCh, TStrV &StrV, const bool &SkipEmpty=true) const
#define EAssertR(Cond, MsgStr)
Vector is a sequence TVal objects representing an array that can change in size.
bool TUInt::IsIpStr |
( |
const TStr & |
IpStr, |
|
|
uint & |
Ip, |
|
|
const char & |
SplitCh = '.' |
|
) |
| |
|
static |
Definition at line 2096 of file dt.cpp.
2098 Ip = 0;
int Byte = 0;
2099 if (IpStrV.
Len() != 4) {
return false; }
2100 if (!IpStrV[0].IsInt(
true, 0, 255, Byte)) {
return false; }; Ip = (
uint)Byte;
2101 if (!IpStrV[1].IsInt(
true, 0, 255, Byte)) {
return false; }; Ip = (Ip << 8) | (
uint)Byte;
2102 if (!IpStrV[2].IsInt(
true, 0, 255, Byte)) {
return false; }; Ip = (Ip << 8) | (
uint)Byte;
2103 if (!IpStrV[3].IsInt(
true, 0, 255, Byte)) {
return false; }; Ip = (Ip << 8) | (
uint)Byte;
TSizeTy Len() const
Returns the number of elements in the vector.
void SplitOnAllCh(const char &SplitCh, TStrV &StrV, const bool &SkipEmpty=true) const
Vector is a sequence TVal objects representing an array that can change in size.
static bool TUInt::IsIpStr |
( |
const TStr & |
IpStr, |
|
|
const char & |
SplitCh = '.' |
|
) |
| |
|
inlinestatic |
Definition at line 1217 of file dt.h.
static bool IsIpStr(const TStr &IpStr, uint &Ip, const char &SplitCh= '.')
bool TUInt::IsIpv6Str |
( |
const TStr & |
IpStr, |
|
|
const char & |
SplitCh = ':' |
|
) |
| |
|
static |
Definition at line 2122 of file dt.cpp.
2125 if (IpStrV.
Len() > 8) {
return false; }
2128 for (
int IpStrN = 0; IpStrN < IpStrV.
Len(); IpStrN++) {
2129 if (IpStrV[IpStrN].Empty()) {
continue; }
2130 if (IpStrV[IpStrN].IsHexInt(
true, 0x0000, 0xFFFF, Group)) {
continue; }
TSizeTy Len() const
Returns the number of elements in the vector.
void SplitOnAllCh(const char &SplitCh, TStrV &StrV, const bool &SkipEmpty=true) const
Vector is a sequence TVal objects representing an array that can change in size.
static uint TUInt::JavaUIntToCppUInt |
( |
const uint & |
JavaUInt | ) |
|
|
inlinestatic |
Definition at line 1208 of file dt.h.
1209 uint B1=(JavaUInt & 0xFF000000) >> 24;
1210 uint B2=(JavaUInt & 0x00FF0000) >> 16;
1211 uint B3=(JavaUInt & 0x0000FF00) >> 8;
1212 uint B4=(JavaUInt & 0x000000FF) >> 0;
1213 uint CppUInt=(B4<<24)+(B3<<16)+(B2<<8)+(B1<<0);
void TUInt::Load |
( |
TSIn & |
SIn | ) |
|
|
inline |
void TUInt::LoadXml |
( |
const PXmlTok & |
XmlTok, |
|
|
const TStr & |
Nm |
|
) |
| |
Definition at line 2077 of file dt.cpp.
static int GetIntArg(const PXmlTok &XmlTok, const TStr &Nm)
TUInt::operator uint |
( |
| ) |
const |
|
inline |
Definition at line 1177 of file dt.h.
1177 {
Val&=UInt.
Val;
return *
this;}
uint TUInt::operator() |
( |
| ) |
const |
|
inline |
uint& TUInt::operator() |
( |
| ) |
|
|
inline |
TUInt TUInt::operator++ |
( |
int |
| ) |
|
|
inline |
Definition at line 1168 of file dt.h.
1168 {
Val++;
return *
this;}
TUInt TUInt::operator-- |
( |
int |
| ) |
|
|
inline |
Definition at line 1169 of file dt.h.
1169 {
Val--;
return *
this;}
TUInt& TUInt::operator<<= |
( |
const int & |
ShiftBits | ) |
|
|
inline |
Definition at line 1181 of file dt.h.
1181 {
Val<<=ShiftBits;
return *
this;}
Definition at line 1166 of file dt.h.
1166 {
Val=UInt.
Val;
return *
this;}
Definition at line 1167 of file dt.h.
1167 {
Val=_Val;
return *
this;}
TUInt& TUInt::operator>>= |
( |
const int & |
ShiftBits | ) |
|
|
inline |
Definition at line 1180 of file dt.h.
1180 {
Val>>=ShiftBits;
return *
this;}
Definition at line 1179 of file dt.h.
1179 {
Val^=UInt.
Val;
return *
this;}
Definition at line 1178 of file dt.h.
1178 {
Val|=UInt.
Val;
return *
this;}
TUInt& TUInt::operator~ |
( |
| ) |
|
|
inline |
void TUInt::Save |
( |
TSOut & |
SOut | ) |
const |
|
inline |
Definition at line 1162 of file dt.h.
void Save(const bool &Bool)
void TUInt::SaveXml |
( |
TSOut & |
SOut, |
|
|
const TStr & |
Nm |
|
) |
| const |
Definition at line 2082 of file dt.cpp.
#define XSaveBETagArg(Nm, ArgNm, ArgVal)
const uint TUInt::Mx =UINT_MAX |
|
static |
The documentation for this class was generated from the following files: