static uint32_t getDecimalDigit(char currChar) { if (currChar >= '0' && currChar <= '9') return currChar - '0'; else __throw_and_return(invalidDecDigitException, 0); }
int rethrowBufferOverrunExceptionAndReturnNegative1() { __try throwBufferOverrunException(); __catch __rethrow_and_return(-1); __throw_and_return(invalidArgumentException, 0); }
static const char* readQueryTransferAnnexArgument(Buffer* pBuffer) { static const char targetXmlAnnex[] = "target.xml"; const char* pReturn = NULL; if (Buffer_MatchesString(pBuffer, targetXmlAnnex, sizeof(targetXmlAnnex)-1)) pReturn = targetXmlAnnex; if (pReturn && !Buffer_IsNextCharEqualTo(pBuffer, ':')) __throw_and_return(invalidArgumentException, NULL); else if (!pReturn && Buffer_IsNextCharEqualTo(pBuffer, ':')) return NULL; else if (!pReturn) __throw_and_return(invalidArgumentException, NULL); else return pReturn; }
int throwBufferOverrunExceptionAndReturnNegative1() { __throw_and_return(bufferOverrunException, -1); }