INNER CODE UNIT · Python

upper_camel_case

HyperionGameTech/HyperionEngine · Tools/Scripts/Misc/rename_files.py:34

            upper_camel_case = upper_camel_case + (part[0].upper() + part[1:])

        if upper_camel_case.endswith('.h'):
            upper_camel_case = upper_camel_case.replace('.h', '.hpp')

        p = Path(d) / upper_camel_case
        # print("{}  ->  {}".format(f, p))

        to_rename[f] = p

        print("Find all includes...")

        opened_file = open(f, 'r')

        line_num = 0

        for line in opened_file.readlines():
            line_num += 1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…