Class CaseFn

java.lang.Object
fluent.functions.cldr.string.CaseFn
All Implemented Interfaces:
fluent.functions.FluentFunction

public class CaseFn extends Object implements fluent.functions.FluentFunction
CASE() : Change the case of a String value

Change the case of a String value. By default, changes case to UPPER case. Case conversion is locale-aware.

Non-String values are passed through.

Options:

  • style: either "upper" (the default) or "lower"

Examples:

  • CASE("STRingVAlue") => "STRINGVALUE"
  • CASE("STRingVAlue", style:"upper") => "STRINGVALUE"
  • CASE("STRingVAlue", style:"lower") => "stringvalue"
  • CASE(-5) => -5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<fluent.types.FluentValue<?>>
    apply​(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fluent.functions.FluentFunction

    select
  • Field Details

  • Constructor Details

    • CaseFn

      public CaseFn()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface fluent.functions.FluentFunction
    • apply

      public List<fluent.types.FluentValue<?>> apply(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope)
      Specified by:
      apply in interface fluent.functions.FluentFunction