(s)
| 57 | test_cppfile.write("/* BEGIN: Generated by scripts/create_c_api_projections.py*/\n") |
| 58 | |
| 59 | def snake_casify(s): |
| 60 | out = '' |
| 61 | lastWasLowerAlpha = False |
| 62 | for c in s: |
| 63 | if c.isupper(): |
| 64 | if lastWasLowerAlpha: |
| 65 | out += '_' |
| 66 | out += c.lower() |
| 67 | lastWasLowerAlpha = False |
| 68 | else: |
| 69 | out += c |
| 70 | lastWasLowerAlpha = c.isalpha() |
| 71 | return out |
| 72 | |
| 73 | |
| 74 | for sectiondef in compounddef.iter('sectiondef'): |
no outgoing calls
no test coverage detected