public IndexOf ( string text, int offset ) : int | ||
text | string | |
offset | int | |
return | int |
public int IndexOf(string text, int offset)
{
return _data.IndexOf(text, _offset + offset) - _offset;
}
private static bool IncrementIndexToSkipAnyComments(FastString script, ref int index) { if (index < script.Length - 1) { if ((script[index] == '/') && (script[index + 1] == '/')) { while ((script[index] != '\r') && (index < script.Length - 1)) { index++; } } if ((script[index] == '/') && (script[index + 1] == '*')) { index = script.IndexOf("*/", index + 2); if (index < 0) { index = script.Length - 1; return true; } } } return false; }