Home
last modified time | relevance | path

Searched refs:newstr (Results 1 – 25 of 30) sorted by relevance

12

/external/elfutils/libdwelf/
Ddwelf_strtab.c168 Dwelf_Strent *newstr = (Dwelf_Strent *) (st->backp + align); in newstring() local
169 newstr->string = str; in newstring()
170 newstr->len = len; in newstring()
171 newstr->next = NULL; in newstring()
172 newstr->left = NULL; in newstring()
173 newstr->right = NULL; in newstring()
174 newstr->offset = 0; in newstring()
176 newstr->reverse[i] = str[len - 2 - i]; in newstring()
177 newstr->reverse[len - 1] = '\0'; in newstring()
181 return newstr; in newstring()
[all …]
/external/curl/src/
Dtool_strdup.c28 char *newstr; in strdup() local
38 newstr = malloc((len + 1)*sizeof(char)); in strdup()
39 if(!newstr) in strdup()
42 memcpy(newstr, str, (len + 1)*sizeof(char)); in strdup()
44 return newstr; in strdup()
Dtool_urlglob.c681 char *newstr; in glob_match_url() local
685 newstr = realloc(target, allocsize + 1); in glob_match_url()
686 if(!newstr) { in glob_match_url()
690 target = newstr; in glob_match_url()
/external/curl/lib/
Dstrdup.c37 char *newstr; in curlx_strdup() local
47 newstr = malloc((len + 1)*sizeof(char)); in curlx_strdup()
48 if(!newstr) in curlx_strdup()
51 memcpy(newstr, str, (len + 1)*sizeof(char)); in curlx_strdup()
53 return newstr; in curlx_strdup()
Dbase64.c109 unsigned char *newstr; in Curl_base64_decode() local
141 newstr = malloc(rawlen + 1); in Curl_base64_decode()
142 if(!newstr) in Curl_base64_decode()
145 pos = newstr; in Curl_base64_decode()
151 free(newstr); in Curl_base64_decode()
164 *outptr = newstr; in Curl_base64_decode()
Dimap.c1791 char *newstr = NULL; in imap_atom() local
1826 newstr = (char *) malloc((newlen + 1) * sizeof(char)); in imap_atom()
1827 if(!newstr) in imap_atom()
1831 p2 = newstr; in imap_atom()
1833 newstr[0] = '"'; in imap_atom()
1834 newstr[newlen - 1] = '"'; in imap_atom()
1853 newstr[newlen] = '\0'; in imap_atom()
1855 return newstr; in imap_atom()
/external/python/cpython2/Modules/
Dstropmodule.c464 PyObject *newstr; in strop_lower() local
470 newstr = PyString_FromStringAndSize(NULL, n); in strop_lower()
471 if (newstr == NULL) in strop_lower()
473 s_new = PyString_AsString(newstr); in strop_lower()
485 Py_DECREF(newstr); in strop_lower()
489 return newstr; in strop_lower()
503 PyObject *newstr; in strop_upper() local
509 newstr = PyString_FromStringAndSize(NULL, n); in strop_upper()
510 if (newstr == NULL) in strop_upper()
512 s_new = PyString_AsString(newstr); in strop_upper()
[all …]
/external/openssh/openbsd-compat/
Dbsd-asprintf.c35 char *string, *newstr; in vasprintf() local
50 if ((newstr = realloc(string, len)) == NULL) { in vasprintf()
56 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf()
58 *str = newstr; in vasprintf()
60 free(newstr); in vasprintf()
/external/ImageMagick/coders/
Dmeta.c304 *newstr, in parse8BIM() local
336 newstr = name = token = (char *) NULL; in parse8BIM()
347 newstr=(char *) AcquireQuantumMemory((size_t) inputlen,sizeof(*newstr)); in parse8BIM()
348 if (newstr == (char *) NULL) in parse8BIM()
365 while (Tokenizer(token_info,0,newstr,(size_t) inputlen,token,"","#", in parse8BIM()
371 if (strcmp(newstr,"8BIM")==0) in parse8BIM()
374 dataset = (unsigned char) StringToLong(newstr); in parse8BIM()
377 recnum = (unsigned int) StringToUnsignedLong(newstr); in parse8BIM()
380 name=(char *) AcquireQuantumMemory(strlen(newstr)+MagickPathExtent, in parse8BIM()
383 (void) strcpy(name,newstr); in parse8BIM()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DXMLStringFactory.java37 public abstract XMLString newstr(String string); in newstr() method in XMLStringFactory
49 public abstract XMLString newstr(FastStringBuffer string, int start, in newstr() method in XMLStringFactory
62 public abstract XMLString newstr(char[] string, int start, in newstr() method in XMLStringFactory
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXMLStringFactoryImpl.java56 public XMLString newstr(String string) in newstr() method in XMLStringFactoryImpl
71 public XMLString newstr(FastStringBuffer fsb, int start, int length) in newstr() method in XMLStringFactoryImpl
86 public XMLString newstr(char[] string, int start, int length) in newstr() method in XMLStringFactoryImpl
DXObject.java291 return XMLStringFactoryImpl.getFactory().newstr(str()); in xstr()
DXString.java1111 return edit ? xsf.newstr(new String(buf, start, d - start)) : this; in fixWhiteSpace()
DXStringForFSB.java928 return edit ? xsf.newstr(buf, start, d - start) : this; in fixWhiteSpace()
/external/icu/icu4c/source/samples/uresb/
Duresb.c195 UChar *newstr, *np; in quotedString() local
206 newstr = (UChar *) malloc((1 + alen) * sizeof(*newstr)); in quotedString()
207 for (sp = string, np = newstr; *sp; ++sp) { in quotedString()
224 return newstr; in quotedString()
/external/fonttools/Lib/fontTools/misc/
DpsOperators.py334 newstr = f.value.read(len(oldstr))
335 s.value = newstr
337 self.push(ps_boolean(len(oldstr) == len(newstr)))
459 newstr = obj3.value[:obj2.value]
460 newstr = newstr + obj1.value
461 newstr = newstr + obj3.value[obj2.value + len(obj1.value):]
462 obj3.value = newstr
/external/vboot_reference/futility/
Ddump_kernel_config_lib.c136 char *newstr = NULL; in FindKernelConfig() local
165 newstr = FindKernelConfigFromStream(ctx, read_fn, in FindKernelConfig()
175 return newstr; in FindKernelConfig()
/external/android-clat/
Dclatd.c267 char newstr[INET6_ADDRSTRLEN]; in ipv6_address_changed() local
269 inet_ntop(AF_INET6, &interface_ip->ip6, newstr, sizeof(newstr)); in ipv6_address_changed()
270 logmsg(ANDROID_LOG_INFO, "IPv6 prefix on %s changed: %s -> %s", interface, oldstr, newstr); in ipv6_address_changed()
/external/e2fsprogs/util/
Dsubst.c121 static void replace_string(char *begin, char *end, char *newstr) in replace_string() argument
125 replace_len = strlen(newstr); in replace_string()
132 memcpy(begin, newstr, replace_len); in replace_string()
/external/icu/icu4c/source/tools/genrb/
Dderb.cpp326 UChar *newstr, *np; in quotedString() local
337 newstr = (UChar *) uprv_malloc((1 + alen) * U_SIZEOF_UCHAR); in quotedString()
338 for (sp = string, np = newstr; *sp; ++sp) { in quotedString()
355 return newstr; in quotedString()
/external/python/cpython2/Lib/plat-mac/
DEasyDialogs.py282 def title(self, newstr=""): argument
285 self.w.SetWTitle(newstr)
287 def label(self, *newstr): argument
290 if newstr:
291 self._label = lf2cr(newstr[0])
/external/python/cpython2/Doc/library/
Deasydialogs.rst189 .. method:: ProgressBar.title([newstr])
191 Sets the text in the title bar of the progress dialog to *newstr*.
194 .. method:: ProgressBar.label([newstr])
196 Sets the text in the progress box of the progress dialog to *newstr*.
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/dom2dtm/
DDOM2DTM.java836 return m_xstrf.newstr( s ); in getStringValue()
855 return m_xstrf.newstr( s ); in getStringValue()
858 return m_xstrf.newstr( node.getNodeValue() ); in getStringValue()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/sax2dtm/
DSAX2DTM.java1263 return m_xstrf.newstr(m_chars, offset, length); in getStringValue()
1297 return m_xstrf.newstr(m_chars, offset, length); in getStringValue()
1309 return m_xstrf.newstr(m_valuesOrPrefixes.indexToString(dataIndex)); in getStringValue()
DSAX2DTM2.java2823 return m_xstrf.newstr(m_chars, offset, length); in getStringValue()
2839 return m_xstrf.newstr(m_chars, dataIndex >>> TEXT_LENGTH_BITS, in getStringValue()
2848 return m_xstrf.newstr(m_chars, m_data.elementAt(-dataIndex), in getStringValue()
2866 return m_xstrf.newstr((String)m_values.elementAt(dataIndex)); in getStringValue()

12