Class StringOperations

java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.StringOperations

public class StringOperations extends Object
Implements string operations.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • StringOperations

      private StringOperations()
      Prevents external creation.
  • Method Details

    • equalsIgnoreCase

      private static boolean equalsIgnoreCase(String s1, String s2, EvaluationAccessor accessor)
      Compares two strings without considering cases using the locale given by the evaluation accessor.
      Parameters:
      s1 - the first string
      s2 - the second string
      accessor - the evaluation accessor carrying the evaluation context / locale
      Returns:
      true for equality, false else
      See Also:
    • equalsIgnoreCase

      private static boolean equalsIgnoreCase(String s1, String s2, EvaluationContext context)
      Compares two strings without considering cases using the locale given by the evaluation context.
      Parameters:
      s1 - the first string
      s2 - the second string
      context - the evaluation context carrying the locale
      Returns:
      true for equality, false else
    • register

      public static final void register()
      Registers the defined operations.