Lines Matching refs:str
81 const char * str;
85 if( tr_bencDictFindStr( metainfo, "announce", &str ) && !strcmp( str, url ) )
87 printf( "\tRemoved \"%s\" from \"announce\"\n", str );
102 if( tr_bencGetStr( node, &str ) && !strcmp( str, url ) )
104 printf( "\tRemoved \"%s\" from \"announce-list\" tier #%d\n", str, (tierIndex+1) );
128 if( changed && !tr_bencDictFindStr( metainfo, "announce", &str ) )
135 if( tr_bencGetStr( node, &str ) ) {
136 tr_bencDictAddStr( metainfo, "announce", str );
137 printf( "\tAdded \"%s\" to announce\n", str );
147 replaceSubstr( const char * str, const char * in, const char * out )
154 while(( walk = strstr( str, in )))
156 evbuffer_add( buf, str, walk-str );
158 str = walk + inlen;
161 evbuffer_add( buf, str, strlen( str ) );
169 const char * str;
173 if( tr_bencDictFindStr( metainfo, "announce", &str ) && strstr( str, in ) )
175 char * newstr = replaceSubstr( str, in, out );
176 printf( "\tReplaced in \"announce\": \"%s\" --> \"%s\"\n", str, newstr );
192 if( tr_bencGetStr( node, &str ) && strstr( str, in ) )
194 char * newstr = replaceSubstr( str, in, out );
195 printf( "\tReplaced in \"announce-list\" tier %d: \"%s\" --> \"%s\"\n", tierCount, str, newstr );
215 const char * str;
218 if( tr_bencGetStr( node, &str ) && !strcmp( str, url ) )