org.jclarion.clarion.swing.MnemonicDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarion-runtime Show documentation
Show all versions of clarion-runtime Show documentation
JClarion runtime environment
/**
* Copyright 2010, by Andrew Barnham
*
* The contents of this file are subject to
* GNU Lesser General Public License (LGPL), v.3
* http://www.gnu.org/licenses/lgpl.txt
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
*/
package org.jclarion.clarion.swing;
public class MnemonicDecoder {
private String string;
private int mnemonicPos=-1; // -1 = no mnemonic
private char mnemonicChar;
public MnemonicDecoder(String input)
{
StringBuilder out = new StringBuilder(input.length());
boolean escape=false;
for (int scan=0;scan-1;
}
public int getMnemonicPos()
{
return mnemonicPos;
}
public char getMnemonicChar()
{
return mnemonicChar;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy