Xerces-C++: XMLString.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_XMLSTRING_HPP)

23#define XERCESC_INCLUDE_GUARD_XMLSTRING_HPP

24

25#include <xercesc/util/BaseRefVectorOf.hpp>

26#include <xercesc/framework/XMLBuffer.hpp>

28#include <string.h>

29#include <assert.h>

30

32

46{

47public:

48

49

50

68 (

69 char* const target

70 , const char* const src

71 );

72

86 (

87 XMLCh* const target

88 , const XMLCh* const src

89 );

91

106 (

107 const char* const str1

108 , const char* const str2

109 );

110

122 (

123 const XMLCh* const str1

124 , const XMLCh* const str2

125 );

126

139 (

140 const XMLCh* const str1

141 , const XMLCh* const str2

142 );

143

144

145

160 (

161 const char* const str1

162 , const char* const str2

164 );

165

180 (

181 const XMLCh* const str1

182 , const XMLCh* const str2

184 );

185

186

201 (

202 const char* const str1

203 , const char* const str2

205 );

206

222 (

223 const XMLCh* const str1

224 , const XMLCh* const str2

226 );

227

241 (

242 const char* const str1

243 , const char* const str2

244 );

245

258 (

259 const XMLCh* const str1

260 , const XMLCh* const str2

261 );

262

271 static bool equals

272 (

273 const XMLCh* str1

274 , const XMLCh* str2

275 );

276

286 static bool equalsN

287 (

288 const XMLCh* str1

289 , const XMLCh* str2

291 );

292

293 static bool equals

294 (

295 const char* str1

296 , const char* str2

297 );

298

308 static bool equalsN

309 (

310 const char* str1

311 , const char* str2

313 );

314

342 (

343 const XMLCh* const str1

344 , const int offset1

345 , const XMLCh* const str2

346 , const int offset2

348 );

349

378 (

379 const XMLCh* const str1

380 , const int offset1

381 , const XMLCh* const str2

382 , const int offset2

384 );

386

400 (

401 char* const target

402 , const char* const src

403 );

404

416 (

417 XMLCh* const target

418 , const XMLCh* const src

419 );

420

434 (

435 XMLCh* const target

436 , const XMLCh* const src

438 );

440

450 (

451 const char* const toHash

453 );

454

462 (

463 const XMLCh* const toHash

465 );

466

476 (

477 const XMLCh* const toHash

480 );

481

483

494 static int indexOf(const char* const toSearch, const char ch);

495

505

518 (

519 const char* const toSearch

520 , const char chToFind

523 );

524

537 (

538 const XMLCh* const toSearch

539 , const XMLCh chToFind

542 );

543

552 static int lastIndexOf(const char* const toSearch, const char ch);

553

562 static int lastIndexOf(const XMLCh* const toSearch, const XMLCh ch);

563

574 (

576 , const XMLCh* const toSearch

578 );

579

592 (

593 const char* const toSearch

594 , const char chToFind

597 );

598

611 (

612 const XMLCh* const toSearch

616 );

618

626 static void moveChars

627 (

628 XMLCh* const targetStr

629 , const XMLCh* const srcStr

631 );

632

634

647 (

648 char* const targetStr

649 , const char* const srcStr

653 );

654

665 (

666 XMLCh* const targetStr

667 , const XMLCh* const srcStr

671 );

672

684 (

685 XMLCh* const targetStr

686 , const XMLCh* const srcStr

691 );

692

694

707 static char* replicate(const char* const toRep,

709

720 static XMLCh* replicate(const XMLCh* const toRep,

722

724

734 (

735 const char* const toTest

736 , const char* const prefix

737 );

738

745 static bool startsWith

746 (

747 const XMLCh* const toTest

748 , const XMLCh* const prefix

749 );

750

760 (

761 const char* const toTest

762 , const char* const prefix

763 );

764

774 static bool startsWithI

775 (

776 const XMLCh* const toTest

777 , const XMLCh* const prefix

778 );

779

786 static bool endsWith

787 (

788 const XMLCh* const toTest

789 , const XMLCh* const suffix

790 );

791

792

802 (

803 const XMLCh* const toSearch

804 , const XMLCh* const searchList

805 );

806

816 (

817 XMLCh* const toSearch

818 , const XMLCh* const searchList

819 );

820

828 (

829 const XMLCh* const toSearch

830 , const XMLCh* const pattern

831 );

832

838

844

854

861

869

876

883

890

897

899

902

915 (

917 , char* const toFill

919 , const unsigned int radix

921 );

922

935 (

937 , XMLCh* const toFill

939 , const unsigned int radix

941 );

942

955 (

956 const unsigned int toFormat

957 , char* const toFill

959 , const unsigned int radix

961 );

962

975 (

976 const unsigned int toFormat

977 , XMLCh* const toFill

979 , const unsigned int radix

981 );

982

995 (

996 const unsigned long toFormat

997 , char* const toFill

999 , const unsigned int radix

1001 );

1002

1015 (

1016 const unsigned long toFormat

1017 , XMLCh* const toFill

1019 , const unsigned int radix

1021 );

1022

1035 (

1036 const int toFormat

1037 , char* const toFill

1039 , const unsigned int radix

1041 );

1042

1055 (

1056 const int toFormat

1057 , XMLCh* const toFill

1059 , const unsigned int radix

1061 );

1062

1075 (

1076 const long toFormat

1077 , char* const toFill

1079 , const unsigned int radix

1081 );

1082

1095 (

1096 const long toFormat

1097 , XMLCh* const toFill

1099 , const unsigned int radix

1101 );

1102

1115 (

1116 const XMLCh* const toConvert

1117 , unsigned int& toFill

1119 );

1120

1135 (

1136 const XMLCh* const toConvert

1138 );

1139

1146 (

1147 XMLCh* const toCutFrom

1149 );

1150

1163 (

1164 const XMLCh* const toTranscode

1166 );

1167

1184 (

1185 const XMLCh* const toTranscode

1186 , char* const toFill

1189 );

1190

1203 (

1204 const char* const toTranscode

1206 );

1207

1219 (

1220 const char* const toTranscode

1221 , XMLCh* const toFill

1224 );

1225

1231 static void trim(char* const toTrim);

1232

1239

1249

1259 , XMLCh delimiter

1262

1274 (

1275 const XMLCh* const pszURI

1276 , const XMLCh* const pszName

1277 );

1278

1296 (

1297 XMLCh* const errText

1299 , const XMLCh* const text1

1300 , const XMLCh* const text2

1301 , const XMLCh* const text3

1302 , const XMLCh* const text4

1304 );

1305

1311

1318

1324

1331

1336

1341

1349

1357

1365

1366

1373 , const XMLCh& toRemove

1374 , XMLBuffer& dstBuffer);

1375

1384

1386

1396 (

1397 char** buf

1399 );

1400

1409 (

1412 );

1414

1415

1416private :

1417

1425

1426

1432 static void termString();

1434

1439 static bool validateRegion(const XMLCh* const str1, const int offset1,

1440 const XMLCh* const str2, const int offset2,

1442

1444

1446};

1447

1448

1449

1450

1451

1452

1454 , const XMLCh* const srcStr

1456{

1457 memmove(targetStr, srcStr, count * sizeof(XMLCh));

1458}

1459

1461{

1462 if (src == 0)

1463 return 0;

1464

1465 const XMLCh* pszTmp = src;

1466

1467 while (*pszTmp++) ;

1468

1469 return (pszTmp - src - 1);

1470}

1471

1474{

1475

1477 if (toRep)

1478 {

1480 ret = (XMLCh*) manager->allocate((len+1) * sizeof(XMLCh));

1481 memcpy(ret, toRep, (len + 1) * sizeof(XMLCh));

1482 }

1483 return ret;

1484}

1485

1487 , const XMLCh* const prefix)

1488{

1490}

1491

1493 , const XMLCh* const prefix)

1494{

1496}

1497

1499 const XMLCh* const suffix)

1500{

1501

1503

1505 suffix, 0, suffixLen);

1506}

1507

1508inline bool XMLString::validateRegion(const XMLCh* const str1,

1509 const int offset1,

1510 const XMLCh* const str2,

1511 const int offset2,

1513{

1514

1515 if (offset1 < 0 || offset2 < 0 ||

1518 return false;

1519

1520 return true;

1521}

1522

1524 , const XMLCh* str2)

1525{

1526 if (str1 == str2)

1527 return true;

1528

1529 if (str1 == 0 || str2 == 0)

1530 return ((!str1 || !*str1) && (!str2 || !*str2));

1531

1532 while (*str1)

1533 if(*str1++ != *str2++)

1534 return false;

1535

1536

1537 return (*str2==0);

1538}

1539

1541 const XMLCh* str2,

1543{

1544 if (str1 == str2 || n == 0)

1545 return true;

1546

1547 if (str1 == 0 || str2 == 0)

1548 return ((!str1 || !*str1) && (!str2 || !*str2));

1549

1550 for (; n != 0 && *str1 && *str2; --n, ++str1, ++str2)

1551 if(*str1 != *str2)

1552 break;

1553

1554 return n == 0 || *str1 == *str2;

1555}

1556

1558 , const char* str2)

1559{

1560 if (str1 == str2)

1561 return true;

1562

1563 if (str1 == 0 || str2 == 0)

1564 return ((!str1 || !*str1) && (!str2 || !*str2));

1565

1566 while (*str1)

1567 if(*str1++ != *str2++)

1568 return false;

1569

1570

1571 return (*str2==0);

1572}

1573

1575 const char* str2,

1577{

1578 if (str1 == str2 || n == 0)

1579 return true;

1580

1581 if (str1 == 0 || str2 == 0)

1582 return ((!str1 || !*str1) && (!str2 || !*str2));

1583

1584 for (; n != 0 && *str1 && *str2; --n, ++str1, ++str2)

1585 if(*str1 != *str2)

1586 break;

1587

1588 return n == 0 || *str1 == *str2;

1589}

1590

1595

1598{

1599 if (tohash == 0 || *tohash == 0)

1600 return 0;

1601

1602 const XMLCh* curCh = tohash;

1604

1605 while (*curCh)

1606 hashVal = (hashVal * 38) + (hashVal >> 24) + (XMLSize_t)(*curCh++);

1607

1608

1609 return hashVal % hashModulus;

1610}

1611

1615{

1616 if (tohash == 0 || n == 0)

1617 return 0;

1618

1619 const XMLCh* curCh = tohash;

1621

1623 hashVal = (hashVal * 38) + (hashVal >> 24) + (XMLSize_t)(*curCh++);

1624

1625

1626 return hashVal % hashModulus;

1627}

1628

1630

1631#endif

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XMLUTIL_EXPORT

Definition XercesDefs.hpp:162

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

size_t XMLSize_t

Definition Xerces_autoconf_config.hpp:112

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

Configurable memory manager.

Definition MemoryManager.hpp:40

virtual void * allocate(XMLSize_t size)=0

This method allocates requested memory.

Definition TransService.hpp:389

Utilities that must be implemented in a platform-specific way.

Definition PlatformUtils.hpp:69

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121

Class for representing native character strings and handling common string operations.

Definition XMLString.hpp:46

static int compareIString(const XMLCh *const str1, const XMLCh *const str2)

Lexicographically compares lowercase versions of str1 and str2 and returns a value indicating their r...

static XMLSize_t hash(const char *const toHash, const XMLSize_t hashModulus)

Hashes a string given a modulus.

static BaseRefVectorOf< XMLCh > * tokenizeString(const XMLCh *const tokenizeSrc, XMLCh delimiter, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Break a string into tokens with the given character as delimiter, and stored in a string vector.

static void cut(XMLCh *const toCutFrom, const XMLSize_t count)

Cut leading chars from a string.

static XMLSize_t stringLen(const char *const src)

Get the length of the string.

static bool regionMatches(const XMLCh *const str1, const int offset1, const XMLCh *const str2, const int offset2, const XMLSize_t charCount)

Lexicographically compares str1 and str2 regions and returns true if they are equal,...

static void copyString(XMLCh *const target, const XMLCh *const src)

Copies src, including the terminating null character, to the location specified by target.

static int lastIndexOf(const char *const toSearch, const char chToFind, const XMLSize_t fromIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Provides the index of the last occurrence of a character within a string starting backward from a giv...

static void removeChar(const XMLCh *const srcString, const XMLCh &toRemove, XMLBuffer &dstBuffer)

Remove character.

static bool startsWith(const char *const toTest, const char *const prefix)

Tells if the sub-string appears within a string at the beginning.

static int indexOf(const XMLCh *const toSearch, const XMLCh ch)

Provides the index of the first occurrence of a character within a string.

static void binToText(const long toFormat, char *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static void subString(XMLCh *const targetStr, const XMLCh *const srcStr, const XMLSize_t startIndex, const XMLSize_t endIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Create a substring of a given string.

static void trim(XMLCh *const toTrim)

Trims off extra space characters from the start and end of the string, moving the non-space string co...

static void fixURI(const XMLCh *const str, XMLCh *const target)

Fixes a platform dependent absolute path filename to standard URI form.

static void moveChars(XMLCh *const targetStr, const XMLCh *const srcStr, const XMLSize_t count)

Moves X number of chars.

Definition XMLString.hpp:1453

static bool startsWithI(const char *const toTest, const char *const prefix)

Tells if the sub-string appears within a string at the beginning without regard to case.

static int compareString(const XMLCh *const str1, const XMLCh *const str2)

Lexicographically compares str1 and str2 and returns a value indicating their relationship.

static int lastIndexOf(const char *const toSearch, const char ch)

Provides the index of the last occurrence of a character within a string.

static int indexOf(const XMLCh *const toSearch, const XMLCh chToFind, const XMLSize_t fromIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Provides the index of the first occurrence of a character within a string starting from a given index...

static BaseRefVectorOf< XMLCh > * tokenizeString(const XMLCh *const tokenizeSrc, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Break a string into tokens with space as delimiter, and stored in a string vector.

static char * replicate(const char *const toRep, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Replicates a string NOTE: The returned buffer is allocated with the MemoryManager.

static bool transcode(const char *const toTranscode, XMLCh *const toFill, const XMLSize_t maxChars, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Transcodes a string to native code-page (DEPRECATED)

static bool copyNString(XMLCh *const target, const XMLCh *const src, const XMLSize_t maxChars)

Copies src, upto a fixed number of characters, to the location specified by target.

static bool isHex(XMLCh const theChar)

Checks whether a character is within [0-9a-fA-F].

static int compareNIString(const XMLCh *const str1, const XMLCh *const str2, const XMLSize_t count)

Lexicographically compares, at most, the first count characters in str1 and str2 without regard to ca...

static void upperCase(XMLCh *const toUpperCase)

Converts a string to uppercase.

static char * transcode(const XMLCh *const toTranscode, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Transcodes a string to native code-page.

static const XMLCh * findAny(const XMLCh *const toSearch, const XMLCh *const searchList)

Tells if a string has any occurrence of any character of another string within itself.

static void binToText(const unsigned long toFormat, char *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static bool isDigit(XMLCh const theChar)

Checks whether a character is within [0-9].

static XMLCh * transcode(const char *const toTranscode, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Transcodes a string to native code-page.

static XMLCh * makeUName(const XMLCh *const pszURI, const XMLCh *const pszName)

Creates a UName from a URI and base name.

static void catString(char *const target, const char *const src)

Concatenates two strings.

static void trim(char *const toTrim)

Trims off extra space characters from the start and end of the string, moving the non-space string co...

static XMLSize_t hashN(const XMLCh *const toHash, const XMLSize_t numChars, const XMLSize_t hashModulus)

Hashes a string given a modulus taking a maximum number of characters as the limit.

Definition XMLString.hpp:1612

static bool equals(const XMLCh *str1, const XMLCh *str2)

compares str1 and str2

Definition XMLString.hpp:1523

static bool equalsN(const XMLCh *str1, const XMLCh *str2, XMLSize_t n)

compares str1 and str2

Definition XMLString.hpp:1540

static void copyString(char *const target, const char *const src)

Copies src, including the terminating null character, to the location specified by target.

static void sizeToText(const XMLSize_t toFormat, char *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts size to a text string based a given radix.

static void binToText(const unsigned long toFormat, XMLCh *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static int compareString(const char *const str1, const char *const str2)

Lexicographically compares str1 and str2 and returns a value indicating their relationship.

static void release(XMLCh **buf, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Release the parameter string that was allocated by XMLString::transcode and XMLString::replicate.

static bool transcode(const XMLCh *const toTranscode, char *const toFill, const XMLSize_t maxChars, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Transcodes a string to native code-page (DEPRECATED)

static void removeWS(XMLCh *toConvert, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Remove whitespace.

static int compareNIString(const char *const str1, const char *const str2, const XMLSize_t count)

Lexicographically compares, at most, the first count characters in str1 and str2 without regard to ca...

static int compareNString(const XMLCh *const str1, const XMLCh *const str2, const XMLSize_t count)

Lexicographically compares, at most, the first count characters in str1 and str2 and returns a value ...

static void subString(XMLCh *const targetStr, const XMLCh *const srcStr, const XMLSize_t startIndex, const XMLSize_t endIndex, const XMLSize_t srcStrLength, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Create a substring of a given string.

static int compareNString(const char *const str1, const char *const str2, const XMLSize_t count)

Lexicographically compares, at most, the first count characters in str1 and str2 and returns a value ...

static bool isWSCollapsed(const XMLCh *const toCheck)

Check if string is WhiteSpace:collapse.

static void lowerCaseASCII(XMLCh *const toLowerCase)

Converts a string to lowercase The routine only lowercases a to z (other characters not changed).

static int lastIndexOf(const XMLCh ch, const XMLCh *const toSearch, const XMLSize_t toSearchLen)

Provides the index of the last occurrence of a character within a string.

static bool isValidNOTATION(const XMLCh *const name, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Checks whether an name is a valid NOTATION according to XML 1.0.

static void binToText(const int toFormat, XMLCh *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static void collapseWS(XMLCh *toConvert, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Collapse whitespace.

static int compareIStringASCII(const XMLCh *const str1, const XMLCh *const str2)

Lexicographically compares lowercase versions of str1 and str2 and returns a value indicating their r...

static bool regionIMatches(const XMLCh *const str1, const int offset1, const XMLCh *const str2, const int offset2, const XMLSize_t charCount)

Lexicographically compares str1 and str2 regions without regard to case and returns true if they are ...

static bool isInList(const XMLCh *const toFind, const XMLCh *const enumList)

Find is the string appears in the enum list.

static bool textToBin(const XMLCh *const toConvert, unsigned int &toFill, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts a string of decimal chars to a binary value.

static bool isWSReplaced(const XMLCh *const toCheck)

Check if string is WhiteSpace:replace.

static void binToText(const unsigned int toFormat, XMLCh *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static void lowerCase(XMLCh *const toLowerCase)

Converts a string to lowercase.

static bool isAlphaNum(XMLCh const theChar)

Checks whether a character is within [0-9a-zA-Z].

static void replaceWS(XMLCh *toConvert, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Replace whitespace.

static void subString(char *const targetStr, const char *const srcStr, const XMLSize_t startIndex, const XMLSize_t endIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Create a substring of a given string.

static int compareIString(const char *const str1, const char *const str2)

Lexicographically compares lowercase versions of str1 and str2 and returns a value indicating their r...

static bool endsWith(const XMLCh *const toTest, const XMLCh *const suffix)

Tells if the sub-string appears within a string at the end.

Definition XMLString.hpp:1498

static void binToText(const long toFormat, XMLCh *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static void catString(XMLCh *const target, const XMLCh *const src)

Concatenates two strings.

static void binToText(const unsigned int toFormat, char *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static int indexOf(const char *const toSearch, const char ch)

Provides the index of the first occurrence of a character within a string.

static void binToText(const int toFormat, char *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts binary data to a text string based a given radix.

static int parseInt(const XMLCh *const toConvert, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts a string of decimal chars to a binary value.

static XMLSize_t replaceTokens(XMLCh *const errText, const XMLSize_t maxChars, const XMLCh *const text1, const XMLCh *const text2, const XMLCh *const text3, const XMLCh *const text4, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Internal function to perform token replacement for strings.

static XMLCh * findAny(XMLCh *const toSearch, const XMLCh *const searchList)

Tells if a string has any occurrence of any character of another string within itself.

static bool isValidEncName(const XMLCh *const name)

Checks whether an name is a valid EncName.

static void upperCaseASCII(XMLCh *const toUpperCase)

Converts a string to uppercase The routine only uppercases A to Z (other characters not changed).

static int indexOf(const char *const toSearch, const char chToFind, const XMLSize_t fromIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Provides the index of the first occurrence of a character within a string starting from a given index...

static void release(char **buf, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Release the parameter string that was allocated by XMLString::transcode and XMLString::replicate.

static int lastIndexOf(const XMLCh *const toSearch, const XMLCh ch, const XMLSize_t fromIndex, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Provides the index of the last occurrence of a character within a string starting backward from a giv...

static int patternMatch(const XMLCh *const toSearch, const XMLCh *const pattern)

Tells if a string has pattern within itself.

static void sizeToText(const XMLSize_t toFormat, XMLCh *const toFill, const XMLSize_t maxChars, const unsigned int radix, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

Converts size to a text string based a given radix.

static bool isAlpha(XMLCh const theChar)

Checks whether a character is within [a-zA-Z].