Lines Matching refs:expr
6132 const char *expr;
7791 * @expr: the 0 terminated string
7806 xmlExpParse(xmlExpCtxtPtr ctxt, const char *expr) {
7809 ctxt->expr = expr;
7810 ctxt->cur = expr;
7822 xmlExpDumpInt(xmlBufferPtr buf, xmlExpNodePtr expr, int glob) {
7825 if (expr == NULL) return;
7827 switch (expr->type) {
7835 xmlBufferWriteCHAR(buf, expr->exp_str);
7838 c = expr->exp_left;
7844 c = expr->exp_right;
7851 c = expr->exp_left;
7857 c = expr->exp_right;
7866 c = expr->exp_left;
7871 if ((expr->exp_min == 0) && (expr->exp_max == 1)) {
7874 } else if ((expr->exp_min == 0) && (expr->exp_max == -1)) {
7877 } else if ((expr->exp_min == 1) && (expr->exp_max == -1)) {
7880 } else if (expr->exp_max == expr->exp_min) {
7881 snprintf(rep, 39, "{%d}", expr->exp_min);
7882 } else if (expr->exp_max < 0) {
7883 snprintf(rep, 39, "{%d,inf}", expr->exp_min);
7885 snprintf(rep, 39, "{%d,%d}", expr->exp_min, expr->exp_max);
7900 * @expr: the compiled expression
7905 xmlExpDump(xmlBufferPtr buf, xmlExpNodePtr expr) {
7906 if ((buf == NULL) || (expr == NULL))
7908 xmlExpDumpInt(buf, expr, 0);
7913 * @expr: a compiled expression
7920 xmlExpMaxToken(xmlExpNodePtr expr) {
7921 if (expr == NULL)
7923 return(expr->c_max);