* xmlPatternStreamable: * @comp: the precompiled pattern * * Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() * should work. * * Returns 1 if streamable, 0 if not and -1 in case of error. */
| 2474 | * Returns 1 if streamable, 0 if not and -1 in case of error. |
| 2475 | */ |
| 2476 | int |
| 2477 | xmlPatternStreamable(xmlPatternPtr comp) { |
| 2478 | if (comp == NULL) |
| 2479 | return(-1); |
| 2480 | while (comp != NULL) { |
| 2481 | if (comp->stream == NULL) |
| 2482 | return(0); |
| 2483 | comp = comp->next; |
| 2484 | } |
| 2485 | return(1); |
| 2486 | } |
| 2487 | |
| 2488 | /** |
| 2489 | * xmlPatternMaxDepth: |
no outgoing calls
no test coverage detected