Subversion Repositories wimsdev

Rev

Rev 8185 | Rev 11124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8185 Rev 8863
Line 81... Line 81...
81
    len=strlen(tag);
81
    len=strlen(tag);
82
    for(pp=strchr(p,'<'); pp!=NULL && *pp; pp=strchr(pp+1,'<')) {
82
    for(pp=strchr(p,'<'); pp!=NULL && *pp; pp=strchr(pp+1,'<')) {
83
      if(strncasecmp(pp+1,tag,len)==0 && !isalnum(*(pp+1+len))) return pp;
83
      if(strncasecmp(pp+1,tag,len)==0 && !isalnum(*(pp+1+len))) return pp;
84
    }
84
    }
85
    return p+strlen(p);
85
    return p+strlen(p);
86
}
-
 
87
 
-
 
88
/* modify a string. Bufferlen must be at least MAX_LINELEN */
-
 
89
void string_modify3(char *start, char *bad_beg, char *bad_end, char *good,...)
-
 
90
{
-
 
91
    char buf[MAX_LINELEN+1];
-
 
92
    va_list vp;
-
 
93
 
-
 
94
    va_start(vp,good);
-
 
95
    vsnprintf(buf,sizeof(buf),good,vp); va_end(vp);
-
 
96
    if(strlen(start)-(bad_end-bad_beg)+strlen(buf)>=MAX_LINELEN) {
-
 
97
      return;
-
 
98
    }
-
 
99
    strcat(buf,bad_end);
-
 
100
    ovlstrcpy(bad_beg,buf);
-
 
101
}
86
}
102
 
87
 
103
void cutamp(char *p)
88
void cutamp(char *p)
104
{
89
{
105
    char *pp;
90
    char *pp;