bool isXMLDigit(unsigned int c) { /*p1.1*/ if (/*c1*/ c>=0x0030 && c<=0x0039) /*p1.2*/ return true;/*p1.3*/ /*p2.1*/ if (/*c2*/ c>=0x0660 && c<=0x0669) /*p2.2*/ return true;/*p2.3*/ /*p3.1*/ if (/*c3*/ c>=0x06F0 && c<=0x06F9) /*p3.2*/ return true;/*p3.3*/ /*p4.1*/ if (/*c4*/ c>=0x0966 && c<=0x096F) /*p4.2*/ return true;/*p4.3*/ /*p5.1*/ if (/*c5*/ c>=0x09E6 && c<=0x09EF) /*p5.2*/ return true;/*p5.3*/ /*p6.1*/ if (/*c6*/ c>=0x0A66 && c<=0x0A6F) /*p6.2*/ return true;/*p6.3*/ /*p7.1*/ if (/*c7*/ c>=0x0AE6 && c<=0x0AEF) /*p7.2*/ return true;/*p7.3*/ /*p8.1*/ if (/*c8*/ c>=0x0B66 && c<=0x0B6F) /*p8.2*/ return true;/*p8.3*/ /*p9.1*/ if (/*c9*/ c>=0x0BE7 && c<=0x0BEF) /*p9.2*/ return true;/*p9.3*/ /*p10.1*/if (/*c10*/c>=0x0C66 && c<=0x0C6F) /*p10.2*/return true;/*p10.3*/ /*p11.1*/if (/*c11*/c>=0x0CE6 && c<=0x0CEF) /*p11.2*/return true;/*p11.3*/ /*p12.1*/if (/*c12*/c>=0x0D66 && c<=0x0D6F) /*p12.2*/return true;/*p12.3*/ /*p13.1*/if (/*c13*/c>=0x0E50 && c<=0x0E59) /*p13.2*/return true;/*p13.3*/ /*p14.1*/if (/*c14*/c>=0x0ED0 && c<=0x0ED9) /*p14.2*/return true;/*p14.3*/ /*p15.1*/if (/*c15*/c>=0x0F20 && c<=0x0F29) /*p15.2*/return true;/*p15.3*/ /*p16*/ return false; } bool isXMLDigit_optimized(unsigned int c) { /*p1.1*/ if (/*c1.1*/ c<0x0030) /*p1.2*/ return false; /*p1.3*/ if (/*c1.2*/ c<=0x0039) /*p1.4*/ return true;/*p1.5*/ /*p2.1*/ if (/*c2.1*/ c<0x0660) /*p2.2*/ return false; /*p2.3*/ if (/*c2.2*/ c<=0x0669) /*p2.4*/ return true;/*p2.5*/ /*p3.1*/ if (/*c3.1*/ c<0x06F0) /*p3.2*/ return false; /*p3.3*/ if (/*c3.2*/ c<=0x06F9) /*p3.4*/ return true;/*p3.5*/ /*p4.1*/ if (/*c4.1*/ c<0x0966) /*p4.2*/ return false; /*p4.3*/ if (/*c4.2*/ c<=0x096F) /*p4.4*/ return true;/*p4.5*/ /*p5.1*/ if (/*c5.1*/ c<0x09E6) /*p5.2*/ return false; /*p5.3*/ if (/*c5.2*/ c<=0x09EF) /*p5.4*/ return true;/*p5.5*/ /*p6.1*/ if (/*c6.1*/ c<0x0A66) /*p6.2*/ return false; /*p6.3*/ if (/*c6.2*/ c<=0x0A6F) /*p6.4*/ return true;/*p6.5*/ /*p7.1*/ if (/*c7.1*/ c<0x0AE6) /*p7.2*/ return false; /*p7.3*/ if (/*c7.2*/ c<=0x0AEF) /*p7.4*/ return true;/*p7.5*/ /*p8.1*/ if (/*c8.1*/ c<0x0B66) /*p8.2*/ return false; /*p8.3*/ if (/*c8.2*/ c<=0x0B6F) /*p8.4*/ return true;/*p8.5*/ /*p9.1*/ if (/*c9.1*/ c<0x0BE7) /*p9.2*/ return false; /*p9.3*/ if (/*c9.2*/ c<=0x0BEF) /*p9.4*/ return true;/*p9.5*/ /*p10.1*/if (/*c10.1*/c<0x0C66) /*p10.2*/return false; /*p10.3*/if (/*c10.2*/c<=0x0C6F) /*p10.4*/return true;/*p10.5*/ /*p11.1*/if (/*c11.1*/c<0x0CE6) /*p11.2*/return false; /*p11.3*/if (/*c11.2*/c<=0x0CEF) /*p11.4*/return true;/*p11.5*/ /*p12.1*/if (/*c12.1*/c<0x0D66) /*p12.2*/return false; /*p12.3*/if (/*c12.2*/c<=0x0D6F) /*p12.4*/return true;/*p12.5*/ /*p13.1*/if (/*c13.1*/c<0x0E50) /*p13.2*/return false; /*p13.3*/if (/*c13.2*/c<=0x0E59) /*p13.4*/return true;/*p13.5*/ /*p14.1*/if (/*c14.1*/c<0x0ED0) /*p14.2*/return false; /*p14.3*/if (/*c14.2*/c<=0x0ED9) /*p14.4*/return true;/*p14.5*/ /*p15.1*/if (/*c15.1*/c<0x0F20) /*p15.2*/return false; /*p15.3*/if (/*c15.2*/c<=0x0F29) /*p15.4*/return true;/*p15.5*/ /*p16*/ return false; }