Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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()));
    }
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to create a custom event in ue4 c++ 
Cpp :: decemal representation 
Cpp :: string in int in cpp 
Cpp :: class how to call main method inheritance in c++ 
Cpp :: coin change top-down 
Cpp :: transpose function example in c++ 
Cpp :: Shuffle String leetcode solution in cpp 
Cpp :: C++ Multilevel Inheritance 
Cpp :: passing reference to thread c++ 
Cpp :: how to install open cv2 in c++ on ubuntu 
Cpp :: c++ program to convert celsius to fahrenheit 
Cpp :: how to draw a rectangle with diagonals and axes of symmetry in c ++ in the console? 
Cpp :: how to run the code 
Cpp :: c++ vector add scalar 
Cpp :: how to add values in empty array using python 
Cpp :: int to string Using boost::lexical_cast 
Cpp :: sfml hide message 
Cpp :: c++ sort cout end 
Cpp :: hpp files 
Cpp :: escribir texto c++ 
Cpp :: nodeafternode 
Cpp :: how to insert variable into string c++ 
Cpp :: C++ operation 
Cpp :: c++ CRL multiline string 
Cpp :: c++ void to avoid functions 
Cpp :: void linux java 
Cpp :: ue4 c++ oncomponentbeginoverlap 
Cpp :: add nested vector cpp 
Cpp :: pum game in c++ 
Cpp :: bounded and unbounded solution in lpp 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =