-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version number in dedicated function, conditional tests
- Loading branch information
1 parent
216f038
commit a60d4da
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
|
||
function camel_case_to_snake_case(x::AbstractString) | ||
# from https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case | ||
s1 = replace(x, r"(.)([A-Z][a-z]+)" => s"\1_\2") | ||
return lowercase(replace(s1, r"([a-z0-9])([A-Z])" => s"\1_\2")) | ||
end | ||
|
||
""" | ||
SCIP_versionnumber() -> VersionNumber | ||
Current version of the SCIP binary | ||
""" | ||
function SCIP_versionnumber() | ||
major = SCIPmajorVersion() | ||
minor = SCIPminorVersion() | ||
patch = SCIPtechVersion() | ||
return VersionNumber(major, minor, patch) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters