跳转至

Sentence case(首字母大写(Sentence case))

Supported in: Batch, Faster, Streaming

Converts the first character of the first word to be uppercase.

Expression categories: String

Declared arguments

  • Expression: String expression to apply sentence case to.
    Expression\

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: hello world

Output: Hello world


Example 2: Base case

Argument values:

  • Expression: this is a test. another test? yes, another test!

Output: This is a test. Another test? Yes, another test!


Example 3: Base case

Argument values:

  • Expression: empty string

Output: empty string


Example 4: Base case

Argument values:

  • Expression: hello world! how are you? have a nice day.

Output: Hello world! How are you? Have a nice day.


Example 5: Base case

Argument values:

  • Expression: hELLO WORLD

Output: HELLO WORLD


Example 6: Base case

Argument values:

  • Expression: how many people? 100 people!

Output: How many people? 100 people!


Example 7: Base case

Argument values:

  • Expression: no punctuation

Output: No punctuation


Example 8: Null case

Argument values:

  • Expression: null

Output: null



中文翻译

首字母大写(Sentence case)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

将第一个单词的首字母转换为大写。

表达式类别: 字符串(String)

声明的参数

  • 表达式(Expression): 需要应用首字母大写的字符串表达式。
    Expression\

输出类型: String

示例

示例 1:基础情况

参数值:

  • 表达式: hello world

输出: Hello world


示例 2:基础情况

参数值:

  • 表达式: this is a test. another test? yes, another test!

输出: This is a test. Another test? Yes, another test!


示例 3:基础情况

参数值:

  • 表达式: 空字符串

输出: 空字符串


示例 4:基础情况

参数值:

  • 表达式: hello world! how are you? have a nice day.

输出: Hello world! How are you? Have a nice day.


示例 5:基础情况

参数值:

  • 表达式: hELLO WORLD

输出: HELLO WORLD


示例 6:基础情况

参数值:

  • 表达式: how many people? 100 people!

输出: How many people? 100 people!


示例 7:基础情况

参数值:

  • 表达式: no punctuation

输出: No punctuation


示例 8:空值情况

参数值:

  • 表达式: null

输出: null