How to make a function in C ++ build that replaces a capital letter after a dot with a capital letter?

there are spaces, let's imagine that we typed all the text in small letters, when calling this function, all the letters after the point become large ... I would like to know the source ... I could use the UpperCase () function but I don’t know how to use it here

Maybe someone will write me a code ... Please

  • The capital letter is capitalized. If the lower case, then it goes immediately after the point or there are spaces after the point, one entry or several? And a solution is needed for a learning task or a more realistic example (in the second case it is easier to take regular expressions, since the conditions of the problem can change more than once) - alexlz

2 answers 2

Analyze the line character by character. Found the point the next character write large.

  • Not the next, but after him, because after the point there is a space, which is also a symbol. - 3JIoi_Hy6
  • When I wrote the answer, the task consisted of a single line to make a function that replaces the uppercase letter after the dot with the capital letter - SoftR

the function of replacing lowercase with capital AnsiUpperCase (string name);

  • one
    Firstly, it changes the entire line to the title, Secondly, it is a Delphi function and in C ++ it may not be completely. - SoftR
  • and the truth is from Delphi, I apologize ... - Zein