Class ManIdentifierUtil

java.lang.Object
manifold.rt.api.util.ManIdentifierUtil

public class ManIdentifierUtil extends Object
  • Constructor Details

    • ManIdentifierUtil

      public ManIdentifierUtil()
  • Method Details

    • makeIdentifier

      public static String makeIdentifier(String name)
    • makePascalCaseIdentifier

      public static String makePascalCaseIdentifier(String name, boolean firstChar)
      Return name following Pascal naming convention. Only alpha-numeric characters are retained.

      - name -> Name
      - NAME -> Name
      - thisName -> ThisName
      - thisname -> Thisname
      - this_name -> ThisName
      - this-name -> ThisName
      - this*name -> ThisName
      - _this_name -> _ThisName
      - _this__name -> _This_Name

      Parameters:
      name - Any name
      firstChar - Should the first character be capitalized? (false = camel case)
      Returns:
      name following pascal naming convention