1 --- misc/raptor-1.4.18/librdfa/curie.c 2008-06-14 07:33:37.000000000 +0200
2 +++ misc/build/raptor-1.4.18/librdfa/curie.c 2011-09-27 14:48:34.000000000 +0200
5 // if we have a relative URI, chop off the name of the file
6 // and replace it with the relative pathname
7 - char* end_index = rindex(context->base, '/');
8 + char* end_index = strrchr(context->base, '/');
15 tmpstr = rdfa_replace_string(tmpstr, context->base);
16 - end_index2= rindex(tmpstr, '/');
17 + end_index2= strrchr(tmpstr, '/');
21 --- misc/raptor-1.4.18/librdfa/rdfa.c 2008-06-16 04:02:58.000000000 +0200
22 +++ misc/build/raptor-1.4.18/librdfa/rdfa.c 2011-09-27 15:03:12.000000000 +0200
25 char* href_start = strstr(base_start, "href=");
26 char* uri_start = href_start + 6;
27 - char* uri_end = index(uri_start, '"');
28 + char* uri_end = strchr(uri_start, '"');
30 if((uri_start != NULL) && (uri_end != NULL))
33 if(context->xml_literal != NULL)
35 // get the data between the first tag and the last tag
36 - content_start = index(context->xml_literal, '>');
37 - content_end = rindex(context->xml_literal, '<');
38 + content_start = strchr(context->xml_literal, '>');
39 + content_end = strrchr(context->xml_literal, '<');
41 if((content_start != NULL) && (content_end != NULL))
43 --- misc/raptor-1.4.18/librdfa/triple.c 2008-06-14 07:33:37.000000000 +0200
44 +++ misc/build/raptor-1.4.18/librdfa/triple.c 2011-09-27 15:02:59.000000000 +0200
46 current_object_literal = context->content;
47 type = RDF_TYPE_PLAIN_LITERAL;
49 - else if(index(context->xml_literal, '<') == NULL)
50 + else if(strchr(context->xml_literal, '<') == NULL)
52 current_object_literal = context->plain_literal;
53 type = RDF_TYPE_PLAIN_LITERAL;
55 // [current element], i.e., not including the element itself, and
56 // giving it a datatype of rdf:XMLLiteral.
57 if((current_object_literal == NULL) &&
58 - (index(context->xml_literal, '<') != NULL) &&
59 + (strchr(context->xml_literal, '<') != NULL) &&
60 ((context->datatype == NULL) ||
61 (strcmp(context->datatype,
62 "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral") == 0)))