Horje
PascalName seperate strings Code Example
PascalName seperate strings
    string[] testCollection = new string[] { "AutomaticTrackingSystem", "XSLT", "aCamelCaseWord" };
    foreach (string test in testCollection)
    {
        // if it is not the first character and it is uppercase
        //  and the previous character is not uppercase then insert a space
        var result = test.SelectMany((c, i) => i != 0 && char.IsUpper(c) && !char.IsUpper(test[i - 1]) ? new char[] { ' ', c } : new char[] { c });
        Console.WriteLine(new String(result.ToArray()));
    }




Cpp

Related
c++ move second line Code Example c++ move second line Code Example
how to find the sum of elements in a stack in cpp Code Example how to find the sum of elements in a stack in cpp Code Example
how to analyse a poem Code Example how to analyse a poem Code Example
string to decimal c++ strtol Code Example string to decimal c++ strtol Code Example
method Code Example method Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6