Page History
...
Code Block |
---|
// Create the list
Handle = SRP_List_Create("Apple Pie,Banana Cream Pie,Chocolate Cake,Pie", ",")
// This will return 4, since the search is looking for an element whose entire element matches "pie"
Index = SRP_List_Match(Handle, "pie", 1, 0)
// This will return 1, since the search is looking for an element containing "pie" anywhere
Index = SRP_List_Match(Handle, "pie", 1, 1)
// This will return 2, since the search starts at index 2
Index = SRP_List_Match(Handle, "pie", 2, 1)
// Play nice with memory
SRP_List_Release(Handle) |