Table of Contents

pcase

proper case - a string processing function that returns a string argument with every first letter of a word in uppercase

syntax

pcase(string)

See also acase, lcase, tcase, ucase

details

pcase works with variable-, fixed-length and constant strings. The result can be assigned to a variable or fixed-length string, and passed to a string parameter or function result.

example

' SharpBASIC proper case programming example
' ------------------------------------------
incl "lib/sys.sbi";

dim text: str = "hello, beautiful world!";
dim s: str;

main do
  s = pcase(text);
  print(s);
end
Output:

Hello, Beautiful World!