24#include <rtl/character.hxx>
38 m_aData{
n1,
n2,
n3, { b8, b9, b10, b11, b12, b13, b14, b15 } }
45 if (
aSeq.getLength() == 16 )
50 for(
int nInd = 0; nInd < 8; nInd++ )
102 if( rIdStr.size() != 36
103 ||
'-' != pStr[ 8 ] ||
'-' != pStr[ 13 ]
104 ||
'-' != pStr[ 18 ] ||
'-' != pStr[ 23 ] )
110 if (rtl::isAsciiDigit(c))
113 return rtl::toAsciiUpperCase(c) -
'A' + 10;
116 for(
int i = 0;
i < 8;
i++ )
118 if( !rtl::isAsciiHexDigit( *pStr ) )
120 aGuid.
Data1 = aGuid.
Data1 * 16 + asciiHexDigitToNumber( *pStr++ );
124 for(
int i = 0;
i < 4;
i++ )
126 if( !rtl::isAsciiHexDigit( *pStr ) )
128 aGuid.
Data2 = aGuid.
Data2 * 16 + asciiHexDigitToNumber( *pStr++ );
132 for(
int i = 0;
i < 4;
i++ )
134 if( !rtl::isAsciiHexDigit( *pStr ) )
136 aGuid.
Data3 = aGuid.
Data3 * 16 + asciiHexDigitToNumber( *pStr++ );
140 for(
int i = 0;
i < 16;
i++ )
142 if( !rtl::isAsciiHexDigit( *pStr ) )
144 aGuid.
Data4[
i/2] = aGuid.
Data4[
i/2] * 16 + asciiHexDigitToNumber( *pStr++ );
157 "%8.8" SAL_PRIXUINT32
"-%4.4X-%4.4X-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x",
162 return OUString::createFromAscii(std::string_view(buf,
n));
OUString GetHexName() const
void MakeFromMemory(void const *pData)
bool MakeId(std::u16string_view rId)
css::uno::Sequence< sal_Int8 > GetByteSequence() const
bool operator==(const SvGlobalName &rObj) const
bool operator<(const SvGlobalName &rObj) const
std::size_t WriteBytes(const void *pData, std::size_t nSize)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
SvStream & WriteUInt32(sal_uInt32 nUInt32)
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
std::size_t ReadBytes(void *pData, std::size_t nSize)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
static css::uno::Sequence< sal_Int8 > GetSequenceClassID(sal_uInt32 n1, sal_uInt16 n2, sal_uInt16 n3, sal_uInt8 b8, sal_uInt8 b9, sal_uInt8 b10, sal_uInt8 b11, sal_uInt8 b12, sal_uInt8 b13, sal_uInt8 b14, sal_uInt8 b15)
SvStream & operator>>(SvStream &rStr, SvGlobalName &rObj)
SvStream & WriteSvGlobalName(SvStream &rOStr, const SvGlobalName &rObj)
Sequence< sal_Int8 > aSeq
std::unique_ptr< sal_Int32[]> pData
int sprintf(char(&s)[N], char const *format, T &&... arguments)