Searched refs:string (Results 1 - 19 of 19) sorted by relevance

/pkg/src/modules/
H A Darch.py75 # ffi.string returns a bytes
77 buf1 = force_text(ffi.string(ffi.cast("char *", buf1)))
78 buf2 = force_text(ffi.string(ffi.cast("char *", buf2)))
81 buf = force_text(ffi.string(ffi.cast("char *", buf)))
88 """Return the release string ("5.11") for the invoking system."""
93 return force_text(ffi.string(ffi.cast("char *", buf)))
102 return force_text(ffi.string(ffi.cast("char *", buf)))
H A Dsysattr.py50 return a string consisting of compact option identifiers."""
54 raise TypeError("filename must be string type")
96 # ffi.string returns a bytes
97 string = force_text(ffi.string(name))
98 if string:
99 attr_list.append(string)
103 cattrs = force_text(ffi.string(cattrs))
110 passed as a list of verbose attribute names or a string that consists of
124 raise TypeError("filename must be string typ
[all...]
H A Dmogrify.py232 "operation with replacement string regexp "
278 "operation with replacement string regexp "
341 m = i.string[slice(*i.span())]
438 ref = int(i.string[slice(*i.span())][2:-1])
446 "%<{ref}> refers to an unmatched string"
499 # Map each pattern to its position in the original match string.
H A Delfextract.c38 #include <string.h>
483 /* Dynamic but no string table? */
/pkg/src/tests/api/
H A Dt_api_refresh.py201 ts1 = api_obj._img.get_last_modified(string=True)
210 ts2 = api_obj._img.get_last_modified(string=True)
H A Dt_linked_image.py51 def pkg_err_verify(string, fmri):
54 if string.find(substring) == -1:
58 """.format(substring, string))
/pkg/src/modules/actions/
H A D__init__.py193 empty, '/', or not a string."""
204 """'act' is an Action (object or string).
207 'name' is the action attribute name, and 'error' is a string
210 'fmri' is an optional package FMRI (object or string)
235 def attrsfromstr(string):
236 """Create an attribute dict given a string w/ key=value pairs.
240 return fromstr("unknown {0}".format(string)).attrs
324 def internalizestr(string, basedirs=None, load_data=True):
331 In general, each string should be in the form of "key=value". The
338 action = fromstr(string)
[all...]
H A D_actions.c29 #include <string.h>
72 * We grab a reference to that string because
200 static char *kwlist[] = { "string", "data", NULL };
206 * The action string is currently assumed to be a stream of bytes that
207 * are valid UTF-8. This method works regardless of whether the string
208 * object provided is a Unicode object, string object, or a character
399 * final attribute string; it is not used for
/pkg/src/modules/solver/
H A Dvec.h26 #include <string.h>
H A Dpy_solver.c184 #define BAILOUT(exception, string) {PyErr_SetString(exception, string); return (NULL);}
/pkg/src/modules/client/
H A Dprintengine.py109 def putp(self, string):
118 self._out_file.write(self.__putp_re.sub("", force_str(string)))
H A Dimageplan.py307 self.pd._image_lm = self.image.get_last_modified(string=True)
1041 "implementation": mediator-implementation-string,
1042 "version": mediator-version-string
1046 'implementation' is an optional string that specifies the
1052 'version' is an optional string that specifies the version
2668 objects which is used so the same string isn't translated into
3190 given in 'name', and the fmri string or callable is given in
3518 self.image.get_last_modified(string=True):
4181 # string.
4318 # to be a string fo
[all...]
H A Dimage.py1212 def get_last_modified(self, string=False):
1215 object. If 'string' is true and a time is available, then the
1216 time is returned as a string (instead of as a datetime
1224 if rv is None or not string:
1526 'prefix' is an optional string value specifying the name of
1529 'alias' is an optional string value specifying the alias of
1975 # if we have a intent string, let depot
2258 # be a string due to poor error handling in shutil.
2690 # lot slower, so a simple string
3031 faster than gen_installed_pkgs when only the FMRI string
[all...]
/pkg/src/
H A Ddepot.py75 import string namespace
117 punc = string.punctuation.replace("-", "_")
119 translate = string.maketrans(punc, "_" * len(string.punctuation))
121 translate = str.maketrans(punc, "_" * len(string.punctuation))
/pkg/src/util/mkcert/
H A Dmkcert.c34 #include <string.h>
131 * correct string type and performing checks on its length.
/pkg/src/zoneproxy/zoneproxy-client/
H A Dzoneproxy-client.c35 #include <string.h>
/pkg/src/tests/cli/
H A Dt_pkg_refresh.py94 def reduce_spaces(self, string):
96 return re.sub(" +", " ", string)
/pkg/src/tests/
H A Dpkg5unittest.py124 Should be initialized with a string giving a more detailed
126 that some prerequisite of the test is unsatisfied. A string
427 # If caller provides arguments as a string, the shell must
802 """Given a C program (as a string), compile it into the
896 # If files is a string, make it a list. Then, if it is
954 def reduceSpaces(self, string):
956 return re.sub(" +", " ", string)
2582 does not contain the string 'Unexpected Exception', indicating
2810 "Missing open in pkgsend string")
3076 given package FMRI and returns it as a string
[all...]
/pkg/src/zoneproxy/zoneproxyd/
H A Dzoneproxyd.c79 #include <string.h>

Completed in 76 milliseconds