(resp, toFind)
| 264 | return par |
| 265 | |
| 266 | def SubstrFind(resp, toFind): |
| 267 | if(len(toFind) > len(resp)): |
| 268 | return [] |
| 269 | |
| 270 | found = False |
| 271 | indexes = [] |
| 272 | |
| 273 | for x in range(0,(len(resp)-len(toFind))+1): |
| 274 | if(ord(resp[x]) == ord(toFind[0])): |
| 275 | found = True |
| 276 | for i in range(0,len(toFind)): |
| 277 | if(ord(resp[x+i]) != ord(toFind[i])): |
| 278 | found = False |
| 279 | break |
| 280 | if(found): |
| 281 | indexes.append(x) |
| 282 | found = False |
| 283 | x += len(toFind) |
| 284 | |
| 285 | return indexes |
| 286 | |
| 287 | def extractPathFromPaths(): |
| 288 | global ahpaths |
no outgoing calls
no test coverage detected