capitalizeEverySentence
Capitalize the first letter of every sentence. Typically, the . characters to separate sentences, but this can be customized via the value of the splitChar argument.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
str | stringStringstr | ● | – |
splitChar named keyword | stringStringstr | – | – |
namedThese parameters are passed as named parameters.
keywordThese parameters are passed as keyword arguments, or as a single dict in their place.
Returns
string
String
str
Examples
javascript
capitalizeEverySentence('hello. world. hi.'); // Returns 'Hello. World. Hi.'
capitalizeEverySentence('hello!world', '!'); // Returns 'Hello!World'dart
capitalizeEverySentence('hello. world. hi.'); // Returns 'Hello. World. Hi.'
capitalizeEverySentence('hello!world', splitChar: '!'); // Returns 'Hello!World'python
capitalizeEverySentence('hello. world. hi.') # Returns 'Hello. World. Hi.'
capitalizeEverySentence('hello!world', '!') # Returns 'Hello!World'