Searched defs:string (Results 1 - 4 of 4) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc-top.lua29 local ESC = string.format("%c", 27)
41 local function wrapper(...) io.write(string.format(...)) end
48 function string:split(delim, max_cols)
53 nextc = string.find(self, delim, start)
55 table.insert(cols, string.sub(self, start, nextc-1))
58 table.insert(cols, string.sub(self, start, string.len(self)))
75 return string.format("%d.%2.2d ZB", size / ZiB, (math.floor(size % ZiB) * 100) / ZiB)
78 return string.format("%d.%2.2d EB", size / EiB, (math.floor(size % EiB) * 100) / EiB)
81 return string
[all...]
/lxc/src/lxc/
H A Dnl.c24 #include <string.h>
75 extern int nla_put_string(struct nlmsg *nlmsg, int attr, const char *string) argument
77 return nla_put(nlmsg, attr, string, strlen(string) + 1);
H A Dutils.c34 #include <string.h>
647 * due to calloc the string should be 0-terminated */
671 /* calculate new string length */
805 char **lxc_string_split(const char *string, char _sep) argument
814 if (!string)
817 str = alloca(strlen(string) + 1);
818 strcpy(str, string);
845 char **lxc_string_split_and_trim(const char *string, char _sep) argument
855 if (!string)
858 str = alloca(strlen(string)
[all...]
/lxc/src/lua-lxc/
H A Dlxc.lua27 local string = require("string")
41 local function wrapper(...) io.write(string.format(...)) end
55 function string:split(delim, max_cols)
60 nextc = string.find(self, delim, start)
62 table.insert(cols, string.sub(self, start, nextc-1))
65 table.insert(cols, string.sub(self, start, string.len(self)))
186 if (not value or not string.find(value, "\n")) then
298 if (string
[all...]

Completed in 14 milliseconds