Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$SENTENCE^XLFSTR(): Convert String to Sentence Case

Reference Type: Supported, Category: String Functions, ICR#: 10104

Description

The $$SENTENCE^XLFSTR extrinsic function returns an input string converted to Sentence case. The initial character of each sentence in the input string is capitalized and the remaining characters in that sentence are returned as all lowercase. The first character of the string begins a sentence. Subsequent sentences are identified as beginning after any of the following:

NOTE: This API was released with Kernel Patch XU*8.0*400.

Format

  $$SENTENCE^XLFSTR(x)

Input Parameters

x:

(required) Character string.

Output

returns:

Returns the string converted to Sentence case format.

Example

>S X=$$SENTENCE^XLFSTR("HELLO WORLD!!! THIS IS A CAPITALIZED SENTENCE. this is not.")

>W X
Hello world!!! This is a capitalized sentence. This is not.