public virtual bool ScanUpToCharactersFromSet(NSCharacterSet stopSet, ref NSString stringValue) { uint saveScanLocation = _scanLocation; uint start; if (!SkipToNextField()) return false; start = _scanLocation; while (_scanLocation < _string.Length) { if (stopSet.CharacterIsMember(_string[_scanLocation])) break; _scanLocation++; } if (_scanLocation == start) { _scanLocation = saveScanLocation; return false; } NSRange range = new NSRange(); range.Location = start; range.Length = _scanLocation - start; stringValue = _string.SubstringWithRange(range); return true; }
public static void Initialize() { defaultSkipSet = NSCharacterSet.WhitespaceAndNewlineCharacterSet; }