Answers for "Convert string to camel case"

1

Convert string to camel case

def to_camel_case(text):
    if text == '':
        return text
    for i in text:
        if i == '-' or i == '_':
            text = text.replace(text[text.index(i):text.index(i)+2], text[text.index(i)+1].upper(), 1)
    return text
Posted by: Guest on April-04-2021
-1

convert a camel case to string

convert camel case to string
Posted by: Guest on November-22-2020

Code answers related to "Convert string to camel case"

Browse Popular Code Answers by Language