Ignore:
Timestamp:
Apr 4, 2007 9:54:29 AM (17 years ago)
Author:
bennylp
Message:

Implement ticket #206: Allow single quotes for attributes in XML (thanks Tory Patnoe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib-util/include/pjlib-util/scanner.h

    r754 r1142  
    351351 
    352352/**  
     353 * Get characters between quotes. If current input doesn't match begin_quote, 
     354 * syntax error will be thrown. Note that the resulting string will contain 
     355 * the enclosing quote. 
     356 * 
     357 * @param scanner       The scanner. 
     358 * @param begin_quotes  The character array to begin the quotes. For example, 
     359 *                      the two characters " and '. 
     360 * @param end_quotes    The character array to end the quotes. The position 
     361 *                      found in the begin_quotes array will be used to match 
     362 *                      the end quotes. So if the begin_quotes was the array 
     363 *                      of "'< the end_quotes should be "'>. If begin_array 
     364 *                      matched the ' then the end_quotes will look for ' to 
     365 *                      match at the end. 
     366 * @param qsize         The size of the begin_quotes and end_quotes arrays. 
     367 * @param out           String to store the result. 
     368 */ 
     369PJ_DECL(void) pj_scan_get_quotes(pj_scanner *scanner, 
     370                                 const char *begin_quotes, 
     371                                 const char *end_quotes, int qsize, 
     372                                 pj_str_t *out); 
     373 
     374 
     375/** 
    353376 * Get N characters from the scanner. 
    354377 * 
Note: See TracChangeset for help on using the changeset viewer.