Class IrpUtils

java.lang.Object
org.harctoolbox.irp.IrpUtils

public final class IrpUtils extends Object
This class is a collection of useful utilities as static functions and constants.
  • Field Details

  • Method Details

    • variableGet

      public static long variableGet(Map<String,Long> map, String name)
    • variableHeader

      public static String variableHeader(HashMap<String,Long> params)
      Produces a header in the spirit of Makehex. Follows the convention of variable ordering: D, (S), F, (T), then the rest alphabetically ordered,
      Parameters:
      params - HashMap<String, Long> of input parameters.
      Returns:
      Nicely formatted header (String)
    • toCIdentifier

      public static String toCIdentifier(String s)
      Deprecated.
      Use IrCoreUtils.toCName instead
      Makes a C identifier of the argument.
      Parameters:
      s -
      Returns:
      its argument made C friendly
    • showTreeViewer

      public static void showTreeViewer(org.antlr.v4.gui.TreeViewer tv, String title)
      Show the TreeViewer given as argument. Requires a graphic environment.
      Parameters:
      tv -
      title -