Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HeteroFlow
THAPI
Commits
6fa19423
Commit
6fa19423
authored
Apr 01, 2020
by
Brice Videau
Browse files
Bugfix.
parent
49c151ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
ze/gen_ze_library_base.rb
View file @
6fa19423
...
...
@@ -25,8 +25,7 @@ $all_types.each { |t|
def
to_class_name
(
name
)
mod
=
to_name_space
(
name
)
n
=
name
.
gsub
(
/_t\z/
,
""
).
gsub
(
/\Azet?_/
,
""
).
split
(
"_"
).
collect
(
&
:capitalize
).
join
n
.
gsub
(
"Uuid"
,
"UUID"
).
gsub
(
"Dditable"
,
"DDITable"
).
gsub
(
/\AFp/
,
"FP"
).
gsub
(
"Ipc"
,
"IPC"
).
gsub
(
"Api"
,
"API"
).
gsub
(
"P2p"
,
"P2P"
)
mod
<<
n
mod
<<
n
.
gsub
(
"Uuid"
,
"UUID"
).
gsub
(
"Dditable"
,
"DDITable"
).
gsub
(
/\AFp/
,
"FP"
).
gsub
(
"Ipc"
,
"IPC"
).
gsub
(
"Api"
,
"API"
).
gsub
(
"P2p"
,
"P2P"
)
end
def
to_ffi_name
(
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment