From f2feb8e5af5da11038044a30cac8a4f2b1c8219c Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 24 Jun 2019 20:49:30 -0400 Subject: Update site --- docs/apidocs/bjc/everge/ControlledString.html | 444 ++++++++++++++++++++++++++ 1 file changed, 444 insertions(+) create mode 100644 docs/apidocs/bjc/everge/ControlledString.html (limited to 'docs/apidocs/bjc/everge/ControlledString.html') diff --git a/docs/apidocs/bjc/everge/ControlledString.html b/docs/apidocs/bjc/everge/ControlledString.html new file mode 100644 index 0000000..41e2733 --- /dev/null +++ b/docs/apidocs/bjc/everge/ControlledString.html @@ -0,0 +1,444 @@ + + + + + + +ControlledString (everge 1.0-SNAPSHOT API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
bjc.everge
+

Class ControlledString

+
+
+ +
+
    +
  • +
    +
    +
    public class ControlledString
    +extends Object
    +
    Represents a string with a set of control flags attached to it.
    +
    +
    Author:
    +
    Ben Culkin
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        strang

        +
        public String strang
        +
        The string the controls apply to.
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ControlledString

        +
        public ControlledString()
        +
        Create a new blank controlled string.
        +
      • +
      + + + +
        +
      • +

        ControlledString

        +
        public ControlledString(String strung)
        +
        Create a new controlled string without any controls.
        +
        +
        Parameters:
        +
        strung - The string to use.
        +
        +
      • +
      + + + +
        +
      • +

        ControlledString

        +
        public ControlledString(String strung,
        +                        ControlledString.Control... controls)
        +
        Create a new controlled string.
        +
        +
        Parameters:
        +
        strung - The string to use.
        +
        controls - The controls that apply to the string.
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        hasControls

        +
        public boolean hasControls()
        +
        Check if the string has controls.
        +
        +
        Returns:
        +
        Whether or not the string has controls.
        +
        +
      • +
      + + + +
        +
      • +

        parse

        +
        public static ControlledString parse(String lne,
        +                                     String contInd,
        +                                     String contSep,
        +                                     String contArg,
        +                                     String contEsc)
        +
        Parse a controlled string from a regular string. + + The controls must be parsed from the beginning of the string, and are indicated by occurances + of contInd that bracket them from the string. The individual controls are delimited by + instances of contSep, with arguments to them being separated by occurances of contArg. + + Each of those separators (which must be regular strings, not regexes or anything) may be + escaped by preceeding them with a copy of contEsc.
        +
        +
        Parameters:
        +
        lne - The string to parse frmo.
        +
        contInd - The indicator for whether or not there are controls.
        +
        contSep - The separator of individual controls.
        +
        contArg - The separator of control arguments.
        +
        contEsc - The escape string for each of the separators/indicators.
        +
        Returns:
        +
        A parsed control string.
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2019. All rights reserved.

+ + -- cgit v1.2.3