mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Removed ConvertUInt{8,16} - ConvertUInt32 handles their input instead.
This commit is contained in:
parent
3b8bf9419d
commit
61f02431ee
2 changed files with 0 additions and 36 deletions
|
@ -30,38 +30,6 @@ namespace Maxsi
|
|||
{
|
||||
namespace String
|
||||
{
|
||||
int ConvertUInt8(uint8_t Num, char* Dest)
|
||||
{
|
||||
uint8_t Copy = Num;
|
||||
int Result = 0;
|
||||
|
||||
while ( Copy > 9 ) { Copy /= 10; Result++; }
|
||||
|
||||
int Offset = Result;
|
||||
while ( Offset >= 0 )
|
||||
{
|
||||
Dest[Offset] = '0' + Num % 10; Num /= 10; Offset--;
|
||||
}
|
||||
|
||||
return Result + 1;
|
||||
}
|
||||
|
||||
int ConvertUInt16(uint16_t Num, char* Dest)
|
||||
{
|
||||
uint16_t Copy = Num;
|
||||
int Result = 0;
|
||||
|
||||
while ( Copy > 9 ) { Copy /= 10; Result++; }
|
||||
|
||||
int Offset = Result;
|
||||
while ( Offset >= 0 )
|
||||
{
|
||||
Dest[Offset] = '0' + Num % 10; Num /= 10; Offset--;
|
||||
}
|
||||
|
||||
return Result + 1;
|
||||
}
|
||||
|
||||
int ConvertUInt32(uint32_t Num, char* Dest)
|
||||
{
|
||||
uint32_t Copy = Num;
|
||||
|
@ -94,8 +62,6 @@ namespace Maxsi
|
|||
return Result + 1;
|
||||
}
|
||||
|
||||
// Missing functions here.
|
||||
|
||||
int ConvertUInt3216(uint32_t Num, char* Dest)
|
||||
{
|
||||
uint32_t Copy = Num;
|
||||
|
|
|
@ -41,8 +41,6 @@ namespace Maxsi
|
|||
bool StartsWith(const char* Haystack, const char* Needle);
|
||||
int ToInt(const char* str);
|
||||
|
||||
int ConvertUInt8T(uint8_t num, char* dest);
|
||||
int ConvertUInt16(uint16_t num, char* dest);
|
||||
int ConvertUInt32(uint32_t num, char* dest);
|
||||
int ConvertUInt64(uint64_t num, char* dest);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue