ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static int xmlParse3986DecOctet ( const char **  str) [static]

xmlParse3986DecOctet: : the string to analyze

dec-octet = DIGIT ; 0-9 / x31-39 DIGIT ; 10-99 / "1" 2DIGIT ; 100-199 / "2" x30-34 DIGIT ; 200-249 / "25" x30-35 ; 250-255

Skip a dec-octet.

Returns 0 if found and skipped, 1 otherwise

Definition at line 362 of file uri.c.

Referenced by xmlParse3986Host().

                                       {
    const char *cur = *str;

    if (!(ISA_DIGIT(cur)))
        return(1);
    if (!ISA_DIGIT(cur+1))
    cur++;
    else if ((*cur != '0') && (ISA_DIGIT(cur + 1)) && (!ISA_DIGIT(cur+2)))
    cur += 2;
    else if ((*cur == '1') && (ISA_DIGIT(cur + 1)) && (ISA_DIGIT(cur + 2)))
    cur += 3;
    else if ((*cur == '2') && (*(cur + 1) >= '0') &&
         (*(cur + 1) <= '4') && (ISA_DIGIT(cur + 2)))
    cur += 3;
    else if ((*cur == '2') && (*(cur + 1) == '5') &&
         (*(cur + 2) >= '0') && (*(cur + 1) <= '5'))
    cur += 3;
    else
        return(1);
    *str = cur;
    return(0);
}

Generated on Sat May 26 2012 05:18:57 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.