/*=============================================================================# # Copyright (c) 2015-2016 David Green and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html # # Contributors: # David Green - initial API and implementation in Mylyn # Stephan Wahlbrink (WalWare.de) #=============================================================================*/ package de.walware.docmlet.wikitext.internal.commonmark.core.inlines; import de.walware.docmlet.wikitext.internal.commonmark.core.Cursor; import de.walware.docmlet.wikitext.internal.commonmark.core.LineSequence; import de.walware.docmlet.wikitext.internal.commonmark.core.TextSegment; public class Cursors { public static Cursor createCursor(String content, int advanceCount) { Cursor cursor = createCursor(content); cursor.advance(advanceCount); return cursor; } public static Cursor createCursor(String content) { return new Cursor(new TextSegment(LineSequence.create(content))); } private Cursors() { // prevent instantiation } }