uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
libcomm.h File Reference
#include <cstdint>
#include <string>
#include <stdarg.h>
#include <locale>
#include <cctype>
#include <algorithm>
#include "libuuu.h"

Go to the source code of this file.

Classes

class  string_ex
 
class  Path
 

Macros

#define log   printf
 
#define dbg   printf
 

Functions

void call_notify (struct uuu_notify nf)
 
int get_libusb_debug_level () noexcept
 
int get_libuuu_debug_level () noexcept
 
uint64_t EndianSwap (uint64_t x)
 
uint32_t EndianSwap (uint32_t x)
 
uint16_t EndianSwap (uint16_t x)
 
string str_to_upper (const string &str)
 
string remove_quota (string str)
 
bool compare_str (const string &str1, const string &str2, bool ignore_case)
 
uint16_t str_to_uint16 (const string &str, bool *conversion_succeeded=nullptr)
 
uint32_t str_to_uint32 (const string &str, bool *conversion_succeeded=nullptr)
 
uint64_t str_to_uint64 (const string &str, bool *conversion_succeeded=nullptr)
 
template<class T>
round_up (T x, T align)
 
template<class T>
div_round_up (T x, T align)
 
std::string trim (const std::string &s)
 
static bool uuu_force_bmap ()
 
static bool uuu_ignore_bmap ()
 

Macro Definition Documentation

◆ dbg

#define dbg   printf

◆ log

#define log   printf

Function Documentation

◆ call_notify()

void call_notify ( struct uuu_notify nf)

◆ compare_str()

bool compare_str ( const string & str1,
const string & str2,
bool ignore_case )
inline

◆ div_round_up()

template<class T>
T div_round_up ( T x,
T align )
inline

◆ EndianSwap() [1/3]

uint16_t EndianSwap ( uint16_t x)
inline

◆ EndianSwap() [2/3]

uint32_t EndianSwap ( uint32_t x)
inline

◆ EndianSwap() [3/3]

uint64_t EndianSwap ( uint64_t x)
inline

◆ get_libusb_debug_level()

int get_libusb_debug_level ( )
noexcept

◆ get_libuuu_debug_level()

int get_libuuu_debug_level ( )
noexcept

◆ remove_quota()

string remove_quota ( string str)
inline

◆ round_up()

template<class T>
T round_up ( T x,
T align )
inline

◆ str_to_uint16()

uint16_t str_to_uint16 ( const string & str,
bool * conversion_succeeded = nullptr )

◆ str_to_uint32()

uint32_t str_to_uint32 ( const string & str,
bool * conversion_succeeded = nullptr )

◆ str_to_uint64()

uint64_t str_to_uint64 ( const string & str,
bool * conversion_succeeded = nullptr )

◆ str_to_upper()

string str_to_upper ( const string & str)
inline

◆ trim()

std::string trim ( const std::string & s)
inline

◆ uuu_force_bmap()

static bool uuu_force_bmap ( )
inlinestatic

◆ uuu_ignore_bmap()

static bool uuu_ignore_bmap ( )
inlinestatic