#include <dt.h>
Definition at line 1242 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 1295 of file dt.h.
1297 else if (
Val>1000000){
static TStr GetKiloStr(const uint &Val)
int TUInt::GetMemUsed |
( |
| ) |
const |
|
inline |
Definition at line 1275 of file dt.h.
1275 {
return sizeof(
TUInt);}
int TUInt::GetPrimHashCd |
( |
| ) |
const |
|
inline |
static uint TUInt::GetRnd |
( |
const uint & |
Range = 0 | ) |
|
|
inlinestatic |
Definition at line 1280 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 1283 of file dt.h.
1284 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)
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
static bool TUInt::IsIpStr |
( |
const TStr & |
IpStr, |
|
|
const char & |
SplitCh = '.' |
|
) |
| |
|
inlinestatic |
Definition at line 1310 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
static uint TUInt::JavaUIntToCppUInt |
( |
const uint & |
JavaUInt | ) |
|
|
inlinestatic |
Definition at line 1301 of file dt.h.
1302 uint B1=(JavaUInt & 0xFF000000) >> 24;
1303 uint B2=(JavaUInt & 0x00FF0000) >> 16;
1304 uint B3=(JavaUInt & 0x0000FF00) >> 8;
1305 uint B4=(JavaUInt & 0x000000FF) >> 0;
1306 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 1270 of file dt.h.
1270 {
Val&=UInt.
Val;
return *
this;}
uint TUInt::operator() |
( |
| ) |
const |
|
inline |
uint& TUInt::operator() |
( |
| ) |
|
|
inline |
TUInt TUInt::operator++ |
( |
int |
| ) |
|
|
inline |
Definition at line 1261 of file dt.h.
1261 {
Val++;
return *
this;}
TUInt TUInt::operator-- |
( |
int |
| ) |
|
|
inline |
Definition at line 1262 of file dt.h.
1262 {
Val--;
return *
this;}
TUInt& TUInt::operator<<= |
( |
const int & |
ShiftBits | ) |
|
|
inline |
Definition at line 1274 of file dt.h.
1274 {
Val<<=ShiftBits;
return *
this;}
Definition at line 1259 of file dt.h.
1259 {
Val=UInt.
Val;
return *
this;}
Definition at line 1260 of file dt.h.
1260 {
Val=_Val;
return *
this;}
TUInt& TUInt::operator>>= |
( |
const int & |
ShiftBits | ) |
|
|
inline |
Definition at line 1273 of file dt.h.
1273 {
Val>>=ShiftBits;
return *
this;}
Definition at line 1272 of file dt.h.
1272 {
Val^=UInt.
Val;
return *
this;}
Definition at line 1271 of file dt.h.
1271 {
Val|=UInt.
Val;
return *
this;}
TUInt& TUInt::operator~ |
( |
| ) |
|
|
inline |
void TUInt::Save |
( |
TSOut & |
SOut | ) |
const |
|
inline |
Definition at line 1255 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: