mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-28 05:54:50 -04:00
UByteArray integrated
- another Qt class can be replaced for non-Qt builds
This commit is contained in:
parent
804a55ba64
commit
71ba5fe582
10 changed files with 56 additions and 28 deletions
|
@ -365,9 +365,9 @@ struct CBString : public tagbstring {
|
|||
CBString toLocal8Bit() { return *this; }
|
||||
bool isEmpty() const { return slen == 0; }
|
||||
void clear() { *this = ""; }
|
||||
CBString left(int len) { return midstr(0, len); }
|
||||
CBString mid(int pos, int len) { return midstr(pos, len); }
|
||||
static CBString fromUtf16(const ushort* str) { // Naive implementation assuming that only ASCII part of UCS2 is used
|
||||
CBString left(int len) const { return midstr(0, len); }
|
||||
CBString mid(int pos, int len) const { return midstr(pos, len); }
|
||||
static CBString fromUtf16(const unsigned short* str) { // Naive implementation assuming that only ASCII part of UCS2 is used
|
||||
CBString msg; while (*str) { msg += *(char*)str; str++; } return msg;
|
||||
}
|
||||
CBString leftJustified(int length) { if (length > slen) { return *this + CBString(' ', length - slen); } return *this; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue