public IndexOf ( String source, String value, int startIndex ) : int | ||
source | String | |
value | String | |
startIndex | int | |
return | int |
public unsafe virtual int IndexOf(String source, String value, int startIndex)
{
if (source == null)
throw new ArgumentNullException("source");
return IndexOf(source, value, startIndex, source.Length - startIndex, CompareOptions.None);
}
CompareInfo::IndexOf ( String source, String value ) : int | |
CompareInfo::IndexOf ( String source, String value, CompareOptions options ) : int | |
CompareInfo::IndexOf ( String source, String value, int startIndex, CompareOptions options ) : int | |
CompareInfo::IndexOf ( String source, String value, int startIndex, int count ) : int | |
CompareInfo::IndexOf ( String source, String value, int startIndex, int count, CompareOptions options ) : int | |
CompareInfo::IndexOf ( String source, char value ) : int | |
CompareInfo::IndexOf ( String source, char value, CompareOptions options ) : int | |
CompareInfo::IndexOf ( String source, char value, int startIndex ) : int | |
CompareInfo::IndexOf ( String source, char value, int startIndex, CompareOptions options ) : int | |
CompareInfo::IndexOf ( String source, char value, int startIndex, int count ) : int | |
CompareInfo::IndexOf ( String source, char value, int startIndex, int count, CompareOptions options ) : int |
private void LoXIVUpdateHandler(object sender, PropertyChangedEventArgs e) { var worker = sender as LoXIV; if (worker != null) { foreach (var log in worker.FFXIVlog) { if (String.IsNullOrEmpty(Name) || String.IsNullOrEmpty(Prefix)) { continue; } if (log.StartsWith(Name)) { string prefix; if (Prefix == "{{ss}}") { prefix = " "; } else { prefix = Prefix; } if (ci.IndexOf(log.Substring(Name.Length + 1), prefix, CompareOptions.IgnoreWidth) == 0) { var lorelei = new Lorelei( "", "", "", ""); try { lorelei.PostTweet(log.Substring(Name.Length + prefix.Length + 1)); } catch { } } } } var dispatcher = Application.Current.Dispatcher; if (dispatcher.CheckAccess()) { LogList = worker.FFXIVlog; } else { dispatcher.BeginInvoke(DispatcherPriority.Send, new Action(() => { LogList = worker.FFXIVlog; })); } } }