Is your tweak request related to a problem? Please describe.
Index Of String does not currently allow setting a StringComparison.
Describe what would you like tweaked
Index Of String to use IndexOf(String, Int32, StringComparison) instead of IndexOf(String, Int32), the method the node currently uses, and to add an input for a StringComparison.
Describe alternatives you've considered
In my case, I don't need one, but Ordinal performs better than CurrentCulture, and the different StringComparisons output different results, which could affect other use cases. IndexOf(String, Int32) uses CurrentCulture:
public int IndexOf(string value, int startIndex)
{
return IndexOf(value, startIndex, StringComparison.CurrentCulture);
}
Additionally, ReplaceSubstring, ReplaceFirstSubstring, StartsWith, and EndsWith could also accept a StringComparison, but don't.
Is your tweak request related to a problem? Please describe.
Index Of String does not currently allow setting a StringComparison.
Describe what would you like tweaked
Index Of String to use
IndexOf(String, Int32, StringComparison)
instead ofIndexOf(String, Int32)
, the method the node currently uses, and to add an input for a StringComparison.Describe alternatives you've considered
In my case, I don't need one, but Ordinal performs better than CurrentCulture, and the different StringComparisons output different results, which could affect other use cases.
IndexOf(String, Int32)
uses CurrentCulture:Additionally, ReplaceSubstring, ReplaceFirstSubstring, StartsWith, and EndsWith could also accept a StringComparison, but don't.
Additional context
No response