示例#1
0
        /// <summary>
        /// Posunie pozíciu ďalej na najbližší token.
        /// </summary>
        /// <param name="destinationToken"></param>
        /// <returns></returns>
        public bool TryMoveTo(string destinationToken, bool afterToken)
        {
            int additionalOffset = afterToken ? destinationToken.Length : 0;
            int index            = CheckIndex(SourceCode.IndexOf(destinationToken, CurIndex + 1) + additionalOffset);

            MoveTo(index);

            return(index != -1);
        }