|
ug4
|
Functions | |
| function common | head (list, last) |
| function common | path_sep () |
| function common | printf (s,...) |
| function common | printfn (s,...) |
| function common | scandir (directory_, extension_) |
| function common | scandir_ugx (directory, extension) |
| function common | scandir_xml (directory, extension) |
| function string | split_path (sep, n) |
| function common | sprintf (s,...) |
| function common | sprintfn (s,...) |
| function common | tail (list, first) |
Utility functions for common operations Questions? steph.nosp@m.an.g.nosp@m.rein@.nosp@m.gcsc.nosp@m..uni-.nosp@m.fran.nosp@m.kfurt.nosp@m..de
| function common head | ( | list | , |
| last | |||
| ) |
head
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :89-91
| function common path_sep | ( | ) |
returns the path separator used by the current OS
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :160-162
| function common printf | ( | s | , |
| ... | |||
| ) |
unpacks a list of lists (trivial recursion to unpack all levels if needed) emulates printf
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :64-66
Referenced by ug::bridge::CompletionFunction(), ug::bridge::GetGlobalFunctionInfo(), ug::bridge::GetMemberFunctionInfo(), ug::CUDAManager::init(), and ug::bridge::print().
| function common printfn | ( | s | , |
| ... | |||
| ) |
emulates printf with newline appended
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :69-71
| function common scandir | ( | directory_ | , |
| extension_ | |||
| ) |
lists all files in a directory, then stores it into a table
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :104-157
| function common scandir_ugx | ( | directory | , |
| extension | |||
| ) |
list all ugx files
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :167-169
| function common scandir_xml | ( | directory | , |
| extension | |||
| ) |
list all xml files
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :174-176
| function string split_path | ( | sep | , |
| n | |||
| ) |
split filename by delimiter (defaults to slash) and takes the n-th group
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :94-99
| function common sprintf | ( | s | , |
| ... | |||
| ) |
emulates sprintf
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :74-76
Referenced by ug::script::LuaCallHook(), ug::bridge::lua::LuaToStringDefault(), ug::TarHeader::set_checksum(), ug::TarHeader::set_filesize(), and ug::TarHeader::TarHeader().
| function common sprintfn | ( | s | , |
| ... | |||
| ) |
emulates sprintfn
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :79-81
| function common tail | ( | list | , |
| first | |||
| ) |
tail
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / common_util.lua :84-86