/[pcre]/code/trunk/pcre_get.c
ViewVC logotype

Diff of /code/trunk/pcre_get.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 852 by zherczeg, Thu Jan 5 19:18:12 2012 UTC
# Line 70  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION Line 70  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
70  pcre_get_stringnumber(const pcre *code, const char *stringname)  pcre_get_stringnumber(const pcre *code, const char *stringname)
71  #else  #else
72  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
73  pcre16_get_stringnumber(const pcre *code, PCRE_SPTR16 stringname)  pcre16_get_stringnumber(const pcre16 *code, PCRE_SPTR16 stringname)
74  #endif  #endif
75  {  {
76  int rc;  int rc;
# Line 138  pcre_get_stringtable_entries(const pcre Line 138  pcre_get_stringtable_entries(const pcre
138    char **firstptr, char **lastptr)    char **firstptr, char **lastptr)
139  #else  #else
140  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
141  pcre16_get_stringtable_entries(const pcre *code, PCRE_SPTR16 stringname,  pcre16_get_stringtable_entries(const pcre16 *code, PCRE_SPTR16 stringname,
142    PCRE_SCHAR16 **firstptr, PCRE_SCHAR16 **lastptr)    PCRE_SCHAR16 **firstptr, PCRE_SCHAR16 **lastptr)
143  #endif  #endif
144  {  {
# Line 231  static int Line 231  static int
231  get_first_set(const pcre *code, const char *stringname, int *ovector)  get_first_set(const pcre *code, const char *stringname, int *ovector)
232  #else  #else
233  static int  static int
234  get_first_set(const pcre *code, PCRE_SPTR16 stringname, int *ovector)  get_first_set(const pcre16 *code, PCRE_SPTR16 stringname, int *ovector)
235  #endif  #endif
236  {  {
237  const real_pcre *re = (const real_pcre *)code;  const REAL_PCRE *re = (const REAL_PCRE *)code;
238  int entrysize;  int entrysize;
239  pcre_uchar *first, *last;  pcre_uchar *first, *last;
240  pcre_uchar *entry;  pcre_uchar *entry;
# Line 341  Returns:         if successful: Line 341  Returns:         if successful:
341    
342  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
343  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
344  pcre_copy_named_substring(const pcre *code, const char *subject, int *ovector,  pcre_copy_named_substring(const pcre *code, const char *subject,
345    int stringcount, const char *stringname, char *buffer, int size)    int *ovector, int stringcount, const char *stringname,
346      char *buffer, int size)
347  #else  #else
348  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
349  pcre16_copy_named_substring(const pcre *code, PCRE_SPTR16 subject, int *ovector,  pcre16_copy_named_substring(const pcre16 *code, PCRE_SPTR16 subject,
350    int stringcount, PCRE_SPTR16 stringname, PCRE_SCHAR16 *buffer, int size)    int *ovector, int stringcount, PCRE_SPTR16 stringname,
351      PCRE_SCHAR16 *buffer, int size)
352  #endif  #endif
353  {  {
354  int n = get_first_set(code, stringname, ovector);  int n = get_first_set(code, stringname, ovector);
# Line 534  Returns:         if successful: Line 536  Returns:         if successful:
536    
537  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
538  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
539  pcre_get_named_substring(const pcre *code, const char *subject, int *ovector,  pcre_get_named_substring(const pcre *code, const char *subject,
540    int stringcount, const char *stringname, const char **stringptr)    int *ovector, int stringcount, const char *stringname,
541      const char **stringptr)
542  #else  #else
543  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
544  pcre16_get_named_substring(const pcre *code, PCRE_SPTR16 subject, int *ovector,  pcre16_get_named_substring(const pcre16 *code, PCRE_SPTR16 subject,
545    int stringcount, PCRE_SPTR16 stringname, PCRE_SPTR16 *stringptr)    int *ovector, int stringcount, PCRE_SPTR16 stringname,
546      PCRE_SPTR16 *stringptr)
547  #endif  #endif
548  {  {
549  int n = get_first_set(code, stringname, ovector);  int n = get_first_set(code, stringname, ovector);

Legend:
Removed from v.836  
changed lines
  Added in v.852

  ViewVC Help
Powered by ViewVC 1.1.5