Changeset 3138 for code/branches/pch/src/tolua/lua/feature.lua
- Timestamp:
- Jun 10, 2009, 4:01:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/tolua/lua/feature.lua
r3127 r3138 48 48 local n = split(self.name,'@') 49 49 self.name = n[1] 50 self.name = string.gsub(self.name, ":%d*$", "")51 50 if not n[2] then 52 51 n[2] = applyrenaming(n[1]) 53 52 end 54 53 self.lname = n[2] or gsub(n[1],"%[.-%]","") 55 self.lname = string.gsub(self.lname, ":%d*$", "")56 54 self.original_name = self.name 57 55 self.lname = clean_template(self.lname) … … 64 62 if parent then 65 63 self.access = parent.curr_member_access 66 self.global_access = self:check_public_access()67 64 else 68 65 end … … 70 67 71 68 function classFeature:check_public_access() 72 73 if type(self.global_access) == "boolean" then74 return self.global_access75 end76 69 77 70 if self.access and self.access ~= 0 then … … 129 122 end 130 123 131 local fname = self.lname 132 if not fname or fname == '' then 133 fname = self.name 134 end 135 n = string.gsub(n..'_'.. (fname), "[<>:, \.%*&]", "_") 124 n = string.gsub(n..'_'.. (self.lname or self.name), "[<>:, \.%*&]", "_") 136 125 137 126 return n
Note: See TracChangeset
for help on using the changeset viewer.