MCPcopy Create free account
hub / github.com/demoth/jake2 / InsertText

Method InsertText

qcommon/src/main/java/jake2/qcommon/exec/Cbuf.java:50–54  ·  view source on GitHub ↗

Puts command(s) to the beginning of the command buffer

(String text)

Source from the content-addressed store, hash-verified

48 * Puts command(s) to the beginning of the command buffer
49 */
50 public static void InsertText(String text) {
51 List<String> commands = splitCommandLine(text);
52 for (int i = commands.size() - 1; i >= 0; i--)
53 buffer.push(commands.get(i));
54 }
55
56 /**
57 * Split string by new line or unquoted semicolon

Callers 3

Keys_MenuKey_fMethod · 0.95
CmdClass · 0.95
ExecuteStringMethod · 0.95

Calls 3

splitCommandLineMethod · 0.95
sizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected