Exemple #1
0
 def function(self, name: str) -> str:
     return lstrip(name, self.strip_prefix.lower() + "_")
Exemple #2
0
 def typedef(self, name: str) -> str:
     """Generate Vala name for typedef's alias."""
     return camel_case(rstrip(lstrip(name, self.strip_prefix.lower() + "_"), '_t'))
Exemple #3
0
 def camel_case(self, name: str) -> str:
     return camel_case(rstrip(lstrip(name, self.strip_prefix.lower() + "_"), '_t'))
Exemple #4
0
 def enum(self, name: str) -> str:
     """Generate Vala name for enum names (not members)."""
     return camel_case(rstrip(lstrip(name, self.strip_prefix.lower() + "_"), '_t'))