User Tools

Site Tools


pcase

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)

  • the string argument can be a string variable, constant, function or literal

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!

pcase.txt · Last modified: 2023/06/26 00:39 by admin