PageRenderTime 1102ms queryTime 58ms sortTime 19ms getByIdsTime 807ms findMatchingLines 146ms

100+ results results for 'isspace (int)' (1102 ms)

Not the results you expected?
hashsig.c https://github.com/rowanj/libgit2.git | C | 347 lines
                    
140		for (i = 0; i < 256; ++i)
                    
141			prog->ignore_ch[i] = git__isspace_nonlf(i);
                    
142		prog->use_ignores = 1;
                    
145		for (i = 0; i < 256; ++i)
                    
146			prog->ignore_ch[i] = git__isspace(i);
                    
147		prog->use_ignores = 1;
                    
174			if (use_ignores)
                    
175				for (; scan < end && git__isspace_nonlf(ch); ch = *scan)
                    
176					++scan;
                    
286		if ((buflen = p_read(fd, buf, sizeof(buf))) <= 0) {
                    
287			if ((error = (int)buflen) < 0)
                    
288				giterr_set(GITERR_OS,
                    
                
tc1.c https://gitlab.com/storedmirrors/minix | C | 304 lines
                    
69static	char   *prompt(EditLine *);
                    
70static	void	sig(int);
                    
71
                    
100	for (ptr = lf->cursor - 1;
                    
101	    !isspace((unsigned char)*ptr) && ptr > lf->buffer; ptr--)
                    
102		continue;
                    
191		if (gotsig) {
                    
192			(void) fprintf(stderr, "Got signal %d.\n", (int)gotsig);
                    
193			gotsig = 0;
                    
                
files-hosts.c https://gitlab.com/Namal/glibc | C | 482 lines
                    
46#define TRAILING_LIST_MEMBER		h_aliases
                    
47#define TRAILING_LIST_SEPARATOR_P	isspace
                    
48#include "files-parse.c"
                    
53
                    
54   STRING_FIELD (addr, isspace, 1);
                    
55
                    
96
                    
97   STRING_FIELD (result->h_name, isspace, 1);
                    
98 })
                    
111	   {
                    
112	     if (result->h_length == (int) len
                    
113		 && ! memcmp (addr, result->h_addr_list[0], len))
                    
                
string.c https://github.com/xoox/linux-2.6.18_pro500.git | C | 636 lines
                    
57	}
                    
58	return (int)c1 - (int)c2;
                    
59}
                    
322	end = s + size - 1;
                    
323	while (end != s && isspace(*end))
                    
324		end--;
                    
326
                    
327	while (*s && isspace(*s))
                    
328		s++;
                    
                
utstrsuppt.c https://gitlab.com/Skylake/Staging | C | 428 lines
                    
212
                    
213	while (isspace((u8)**string)) {
                    
214		*string += 1;
                    
258	if ((**string == ACPI_ASCII_ZERO) &&
                    
259	    (tolower((int)*(*string + 1)) == 'x')) {
                    
260		*string += 2;	/* Go past the leading 0x */
                    
                
misc.c https://bitbucket.org/kmv/aeriebsd-src.git | C | 298 lines
                    
106			*sp = c;
                    
107			if (i < (int)sizeof(buf)) {
                    
108				i++;
                    
114			continue;
                    
115		for (sp = buf; isspace(*sp); sp++)
                    
116			;
                    
                
fts3_icu.c https://github.com/akesling/chromium.git | C | 258 lines
                    
119      nChar * sizeof(UChar) +            /* IcuCursor.aChar[] */
                    
120      (nChar+1) * sizeof(int)            /* IcuCursor.aOffset[] */
                    
121  );
                    
199      U8_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
                    
200      if( u_isspace(c) ){
                    
201        iStart = iWhite;
                    
                
fts2_icu.c https://github.com/akesling/chromium.git | C | 258 lines
                    
119      nChar * sizeof(UChar) +            /* IcuCursor.aChar[] */
                    
120      (nChar+1) * sizeof(int)            /* IcuCursor.aOffset[] */
                    
121  );
                    
199      U16_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
                    
200      if( u_isspace(c) ){
                    
201        iStart = iWhite;
                    
                
crn_strutils.cpp https://gitlab.com/BoTranVan/crunch | C++ | 613 lines
                    
49
                    
50      CRNLIB_ASSERT((q - pDst) <= (int)dst_len);
                    
51
                    
120
                    
121      while (*p && isspace(*p))
                    
122         p++;
                    
190
                    
191      while (*p && isspace(*p))
                    
192         p++;
                    
260
                    
261      while (*p && isspace(*p))
                    
262         p++;
                    
304
                    
305      while (*p && isspace(*p))
                    
306         p++;
                    
                
tty.c https://bitbucket.org/a3217055/illumos-2.git | C | 681 lines
                    
51static int	savetty(void);
                    
52static void	ttycont(int);
                    
53
                    
88#ifdef	__cplusplus
                    
89ttycont(int)
                    
90#else
                    
117#ifdef SIGCONT
                    
118	void (*savecont)(int);
                    
119#ifndef TIOCSTI
                    
119#ifndef TIOCSTI
                    
120	void (*savestop)(int);
                    
121#endif
                    
188	fflush(stdout);
                    
189	if (src != NOSTR && (int)strlen(src) > LINESIZE - 2) {
                    
190		printf(gettext("too long to edit\n"));
                    
                
tiletext.c https://bitbucket.org/clivecrous/newt.git | C | 332 lines
                    
47	while (fscanf(txtfile, FORMAT_STRING, c, &r, &g, &b) == 4) {
                    
48		color_index[(int) c[0]] = num_colors;
                    
49		ColorMap[CM_RED][num_colors] = r;
                    
77		Fprintf(txtfile, "%c = (%d, %d, %d)\n", c,
                    
78						(int)MainColorMap[CM_RED][i],
                    
79						(int)MainColorMap[CM_GREEN][i],
                    
79						(int)MainColorMap[CM_GREEN][i],
                    
80						(int)MainColorMap[CM_BLUE][i]);
                    
81	}
                    
133			}
                    
134			k = color_index[(int) c[0]];
                    
135			if (k == -1)
                    
160	 */
                    
161	while ((*c = fgetc(txtfile)) != EOF && isspace(*c))
                    
162		;
                    
                
string.c https://github.com/hackndev/linux-hnd.git | C | 634 lines
                    
57	}
                    
58	return (int)c1 - (int)c2;
                    
59}
                    
322	end = s + size - 1;
                    
323	while (end >= s && isspace(*end))
                    
324		end--;
                    
326
                    
327	while (*s && isspace(*s))
                    
328		s++;
                    
                
str.c https://gitlab.com/tlevine/DragonFlyBSD | C | 354 lines
                    
147	const char *name;
                    
148	int (*func)(int);
                    
149	int *set;
                    
170	{ "punct",  ispunct,  NULL },
                    
171#undef isspace
                    
172	{ "space",  isspace,  NULL },
                    
181{
                    
182	int cnt, (*func)(int);
                    
183	CLASS *cp, tmp;
                    
190
                    
191	if ((cp->set = p = malloc((NCHARS + 1) * sizeof(int))) == NULL)
                    
192		err(1, "malloc");
                    
192		err(1, "malloc");
                    
193	bzero(p, (NCHARS + 1) * sizeof(int));
                    
194	for (cnt = 0, func = cp->func; cnt < NCHARS; ++cnt)
                    
                
mbchar.h https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C Header | 357 lines
                    
92
                    
93   mb_isspace (mbc)
                    
94     returns true if mbc is a space character.
                    
134   extern bool          mb_ispunct (const mbchar_t mbc);
                    
135   extern bool          mb_isspace (const mbchar_t mbc);
                    
136   extern bool          mb_isupper (const mbchar_t mbc);
                    
189   ? ((mbc2).wc_valid                                                   \
                    
190      ? (int) (mbc1).wc - (int) (mbc2).wc                               \
                    
191      : -1)                                                             \
                    
201   ? ((mbc2).wc_valid                                                   \
                    
202      ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc)         \
                    
203      : -1)                                                             \
                    
233#define mb_ispunct(mbc) ((mbc).wc_valid && iswpunct ((mbc).wc))
                    
234#define mb_isspace(mbc) ((mbc).wc_valid && iswspace ((mbc).wc))
                    
235#define mb_isupper(mbc) ((mbc).wc_valid && iswupper ((mbc).wc))
                    
                
ext_mailparse.cpp https://github.com/tstarling/hiphop-php.git | C++ | 454 lines
                    
37  unsigned int l = s.length();
                    
38  while (l > 0 && isspace((unsigned char)s[l - 1])) {
                    
39    l--;
                    
128  h = (h % 53);
                    
129  return (int)h;
                    
130}
                    
378      int len = strlen(origfilename);
                    
379      while (isspace(origfilename[len-1])) {
                    
380        origfilename[--len] = '\0';
                    
                
ckitem.c https://github.com/richlowe/illumos-gate.git | C | 600 lines
                    
72
                    
73	n = (int)(6 + sizeof (MESG2));
                    
74	if (flag)
                    
74	if (flag)
                    
75		n += (int)(sizeof (MESG0));
                    
76
                    
175	} else {
                    
176		list = match(menup, strval, (int)max);
                    
177		if (!list) {
                    
202		} else {
                    
203			n = (int)strtol(pt, &pt, 10);
                    
204			if ((n <= 0) || (n > max))
                    
206		}
                    
207		while (isspace((unsigned char)*pt))
                    
208			pt++;
                    
                
cmutil.def https://gitlab.com/ubuntu-trusty/mingw-w64 | Module-Definition | 261 lines
                    
57?Clear@CIniW@@QEAAXXZ
                    
58; public: void __cdecl CmLogFile::Clear(int)__ptr64 
                    
59?Clear@CmLogFile@@QEAAXH@Z
                    
80CmIsIPv6AddressW
                    
81CmIsSpaceA
                    
82CmIsSpaceW
                    
220?SetPrimaryRegPath@CIniW@@QEAAXPEBG@Z
                    
221; public: void __cdecl CIniA::SetReadICSData(int)__ptr64 
                    
222?SetReadICSData@CIniA@@QEAAXH@Z
                    
222?SetReadICSData@CIniA@@QEAAXH@Z
                    
223; public: void __cdecl CIniW::SetReadICSData(int)__ptr64 
                    
224?SetReadICSData@CIniW@@QEAAXH@Z
                    
232?SetSection@CIniW@@QEAAXPEBG@Z
                    
233; public: void __cdecl CIniA::SetWriteICSData(int)__ptr64 
                    
234?SetWriteICSData@CIniA@@QEAAXH@Z
                    
                
string.c https://bitbucket.org/darcyg/shenzhou-iv-stm32f107-rt-thread.git | C | 623 lines
                    
167	{
                    
168		res = ((int)*n) % 10U;
                    
169		*n = ((int)*n) / 10U;
                    
172	{
                    
173		res = ((int)*n) % 16U;
                    
174		*n = ((int)*n) / 16U;
                    
213
                    
214#define __ismask(x) (_ctype[(int)(unsigned char)(x)])
                    
215
                    
222#define ispunct(c)	((__ismask(c)&(_P)) != 0)
                    
223#define isspace(c)	((__ismask(c)&(_S)) != 0)
                    
224#define isupper(c)	((__ismask(c)&(_U)) != 0)
                    
368		 */
                    
369		if (isspace(*fmt)) {
                    
370			while (isspace(*fmt))
                    
                
src.c https://github.com/reobwuein/emscripten.git | C | 194 lines
                    
124  printf("isxdigit('a'): %d\n", ((*__ctype_b_loc ())[(int) (('a'))] & (unsigned short int) _ISxdigit) != 0);
                    
125  printf("isxdigit('A'): %d\n", ((*__ctype_b_loc ())[(int) (('A'))] & (unsigned short int) _ISxdigit) != 0);
                    
126  printf("isxdigit('5'): %d\n", ((*__ctype_b_loc ())[(int) (('5'))] & (unsigned short int) _ISxdigit) != 0);
                    
148  printf("\n");
                    
149  printf("isspace(-45): %d\n", ((*__ctype_b_loc ())[(int) ((-45))] & (unsigned short int) _ISspace) != 0);
                    
150  printf("isspace( 10): %d\n", ((*__ctype_b_loc ())[(int) ((10))] & (unsigned short int) _ISspace) != 0);
                    
150  printf("isspace( 10): %d\n", ((*__ctype_b_loc ())[(int) ((10))] & (unsigned short int) _ISspace) != 0);
                    
151  printf("isspace('a'): %d\n", ((*__ctype_b_loc ())[(int) (('a'))] & (unsigned short int) _ISspace) != 0);
                    
152  printf("isspace('A'): %d\n", ((*__ctype_b_loc ())[(int) (('A'))] & (unsigned short int) _ISspace) != 0);
                    
152  printf("isspace('A'): %d\n", ((*__ctype_b_loc ())[(int) (('A'))] & (unsigned short int) _ISspace) != 0);
                    
153  printf("isspace('5'): %d\n", ((*__ctype_b_loc ())[(int) (('5'))] & (unsigned short int) _ISspace) != 0);
                    
154  printf("isspace('.'): %d\n", ((*__ctype_b_loc ())[(int) (('.'))] & (unsigned short int) _ISspace) != 0);
                    
154  printf("isspace('.'): %d\n", ((*__ctype_b_loc ())[(int) (('.'))] & (unsigned short int) _ISspace) != 0);
                    
155  printf("isspace(183): %d\n", ((*__ctype_b_loc ())[(int) ((183))] & (unsigned short int) _ISspace) != 0);
                    
156
                    
                
pystrtod.c https://bitbucket.org/apexgames-ondemand/zombie-onslaught-source.git | C | 490 lines
                    
6/* ascii character tests (as opposed to locale tests) */
                    
7#define ISSPACE(c)  ((c) == ' ' || (c) == '\f' || (c) == '\n' || \
                    
8                     (c) == '\r' || (c) == '\t' || (c) == '\v')
                    
70	/* Skip leading space */
                    
71	while (ISSPACE(*p))
                    
72		p++;
                    
346   locale-specific.  Return 0 on error, else 1. */
                    
347Py_LOCAL_INLINE(int)
                    
348add_thousands_grouping(char* buffer, size_t buf_size)
                    
                
dotlex.c https://bitbucket.org/akristmann/custom_build.git | C | 360 lines
                    
31
                    
32static char *lex_gets (int);
                    
33static int lex_token (char *);
                    
198    fprintf (stderr, "context: ");
                    
199    for (p = lexptr - 1; (p > lexbuf) && (isspace (*p) == FALSE); p--)
                    
200        ;
                    
213    do {
                    
214        while (isspace (*p))
                    
215            p++;
                    
242        } else {
                    
243            if (!isspace (*p))
                    
244                break;
                    
                
fnmatch.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 341 lines
                    
102    char *idstring;		/* identifying string */
                    
103    int (*checkfun)(int);	/* testing function */
                    
104} CHARCLASS;
                    
115    { "punct", ispunct },
                    
116    { "space", isspace },
                    
117    { "upper", isupper },
                    
                
rgw_auth_s3.cc https://github.com/liewegas/ceph.git | C++ | 424 lines
                    
161static inline bool is_base64_for_content_md5(unsigned char c) {
                    
162  return (isalnum(c) || isspace(c) || (c == '+') || (c == '/') || (c == '='));
                    
163}
                    
174      if (!is_base64_for_content_md5(*p)) {
                    
175        dout(0) << "NOTICE: bad content-md5 provided (not base64), aborting request p=" << *p << " " << (int)*p << dendl;
                    
176        return false;
                    
                
audio.c https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C | 500 lines
                    
147		for (i = strlen(line);
                    
148		     i > 0 && isascii((int)line[i - 1]) && isspace((int)line[i - 1]);
                    
149			)
                    
152		/* Remove leading space */
                    
153		for (cc = line; *cc && isascii((int)*cc) && isspace((int)*cc); cc++)
                    
154			continue;
                    
161		for (ca = cc; *ca; ca++) {
                    
162			if (isascii((int)*ca)) {
                    
163				if (islower((int)*ca)) {
                    
164					*ca = toupper(*ca);
                    
165				} else if (isspace((int)*ca) || (*ca == '='))
                    
166					break;
                    
170		/* Remove space (and possible =) leading the arg */
                    
171		for (; *ca && isascii((int)*ca) && (isspace((int)*ca) || (*ca == '=')); ca++)
                    
172			continue;
                    
                
audio.c https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | C | 505 lines
                    
152		for (i = strlen(line);
                    
153		     i > 0 && isascii((unsigned char)line[i - 1]) && isspace((unsigned char)line[i - 1]);
                    
154			)
                    
157		/* Remove leading space */
                    
158		for (cc = line; *cc && isascii((unsigned char)*cc) && isspace((unsigned char)*cc); cc++)
                    
159			continue;
                    
169					*ca = toupper((unsigned char)*ca);
                    
170				} else if (isspace((unsigned char)*ca) || (*ca == '='))
                    
171					break;
                    
175		/* Remove space (and possible =) leading the arg */
                    
176		for (; *ca && isascii((unsigned char)*ca) && (isspace((unsigned char)*ca) || (*ca == '=')); ca++)
                    
177			continue;
                    
350# endif /* HAVE_SYS_AUDIOIO_H */
                    
351	rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
                    
352	if (rval < 0) {
                    
                
bgp_community.c https://bitbucket.org/__wp__/mb-linux-msli.git | C | 632 lines
                    
481  /* Skip white space. */
                    
482  while (isspace ((int) *p))
                    
483    p++;
                    
489  /* Well known community string check. */
                    
490  if (isalpha ((int) *p)) 
                    
491    {
                    
526  /* Community value. */
                    
527  if (isdigit ((int) *p)) 
                    
528    {
                    
533
                    
534      while (isdigit ((int) *p) || *p == ':') 
                    
535	{
                    
                
my_init.c https://github.com/chucho/FaceCore.git | C | 607 lines
                    
47  long int tmp;
                    
48  while (*str && my_isspace(&my_charset_latin1, *str))
                    
49    str++;
                    
82  if ((str= getenv("UMASK")) != 0)
                    
83    my_umask= (int) (atoi_octal(str) | 0600);
                    
84  /* Default creation of new dir's */
                    
85  if ((str= getenv("UMASK_DIR")) != 0)
                    
86    my_umask_dir= (int) (atoi_octal(str) | 0700);
                    
87
                    
                
confdata.c https://github.com/mturquette/linux.git | C | 1249 lines
                    
154		if (*p != '"') {
                    
155			for (p2 = p; *p2 && !isspace(*p2); p2++)
                    
156				;
                    
378				conf_warning("unexpected data: %.*s",
                    
379					     (int)strcspn(line, "\r\n"), line);
                    
380
                    
                
conf.c https://github.com/mturquette/linux.git | C | 723 lines
                    
62
                    
63	while ((isspace(*p)))
                    
64		p++;
                    
70	p = str + l - 1;
                    
71	while ((isspace(*p)))
                    
72		*p-- = 0;
                    
534				char *endp;
                    
535				int tmp = (int)strtol(seed_env, &endp, 0);
                    
536				if (*endp == '\0') {
                    
                
SDL_stdinc.h https://github.com/GizmoR13/pioneer.git | C Header | 620 lines
                    
150#ifndef __NDS__
                    
151SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int));
                    
152#endif
                    
244#define SDL_isdigit(X)  isdigit(X)
                    
245#define SDL_isspace(X)  isspace(X)
                    
246#define SDL_toupper(X)  toupper(X)
                    
249#define SDL_isdigit(X)  (((X) >= '0') && ((X) <= '9'))
                    
250#define SDL_isspace(X)  (((X) == ' ') || ((X) == '\t') || ((X) == '\r') || ((X) == '\n'))
                    
251#define SDL_toupper(X)  (((X) >= 'a') && ((X) <= 'z') ? ('A'+((X)-'a')) : (X))
                    
                
string.c https://github.com/ab3416/linux-2.6.git | C | 758 lines
                    
53	} while (--len);
                    
54	return (int)c1 - (int)c2;
                    
55}
                    
343{
                    
344	while (isspace(*str))
                    
345		++str;
                    
368	end = s + size - 1;
                    
369	while (end >= s && isspace(*end))
                    
370		end--;
                    
                
LexCPP.cxx https://bitbucket.org/lennonchan/cafu.git | C++ | 506 lines
                    
27
                    
28static bool IsSpaceEquiv(int state) {
                    
29	return (state <= SCE_C_COMMENTDOC) ||
                    
42static bool FollowsPostfixOperator(StyleContext &sc, Accessor &styler) {
                    
43	int pos = (int) sc.currentPos;
                    
44	while (--pos > 0) {
                    
106		int back = startPos;
                    
107		while (--back && IsSpaceEquiv(styler.StyleAt(back)))
                    
108			;
                    
358
                    
359		if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) {
                    
360			chPrevNonWhite = sc.ch;
                    
                
htmltag.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 644 lines
                    
102        for ( i = 0;
                    
103              pos < end && i < (int)WXSIZEOF(tagBuffer) - 1 &&
                    
104              *pos != wxT('>') && !wxIsspace(*pos);
                    
251
                    
252            if ( m_CachePos < 0 || m_CachePos >= (int)Cache().size() )
                    
253            {
                    
                
lstrlib.c https://bitbucket.org/lennonchan/cafu.git | C | 869 lines
                    
114  if (posi > pose) return 0;  /* empty interval; return no values */
                    
115  n = (int)(pose -  posi + 1);
                    
116  if (posi + n <= pose)  /* overflow? */
                    
233    case 'p' : res = ispunct(c); break;
                    
234    case 's' : res = isspace(c); break;
                    
235    case 'u' : res = isupper(c); break;
                    
                
bcmutils.h https://github.com/dmitriy103/bravo_kernel-2.6.35.git | C Header | 637 lines
                    
44extern const unsigned char bcm_ctype[];
                    
45#define bcm_ismask(x)	(bcm_ctype[(int)(unsigned char)(x)])
                    
46
                    
54#define bcm_ispunct(c)	((bcm_ismask(c)&(_BCM_P)) != 0)
                    
55#define bcm_isspace(c)	((bcm_ismask(c)&(_BCM_S)) != 0)
                    
56#define bcm_isupper(c)	((bcm_ismask(c)&(_BCM_U)) != 0)
                    
161
                    
162#define pktq_len(pq)                    ((int)(pq)->len)
                    
163#define pktq_max(pq)                    ((int)(pq)->max)
                    
451#define MODSUB(x, y, bound) \
                    
452    MUX(((int)(x)) - ((int)(y)) < 0, (x) - (y) + (bound), (x) - (y))
                    
453
                    
479
                    
480#define bcm_valid_tlv(elt, buflen) ((buflen) >= 2 && (int)(buflen) >= (int)(2 + (elt)->len))
                    
481
                    
                
libkern.h https://gitlab.com/storedmirrors/minix | C Header | 487 lines
                    
57LIBKERN_INLINE u_long ulmin(u_long, u_long) __unused;
                    
58LIBKERN_INLINE int abs(int) __unused;
                    
59LIBKERN_INLINE long labs(long) __unused;
                    
62
                    
63LIBKERN_INLINE int isspace(int) __unused;
                    
64LIBKERN_INLINE int isascii(int) __unused;
                    
64LIBKERN_INLINE int isascii(int) __unused;
                    
65LIBKERN_INLINE int isupper(int) __unused;
                    
66LIBKERN_INLINE int islower(int) __unused;
                    
67LIBKERN_INLINE int isalpha(int) __unused;
                    
68LIBKERN_INLINE int isalnum(int) __unused;
                    
69LIBKERN_INLINE int isdigit(int) __unused;
                    
69LIBKERN_INLINE int isdigit(int) __unused;
                    
70LIBKERN_INLINE int isxdigit(int) __unused;
                    
71LIBKERN_INLINE int iscntrl(int) __unused;
                    
                
xdot.c https://github.com/ekoontz/graphviz.git | C | 629 lines
                    
107{
                    
108    while (isspace(*s)) s++;
                    
109    switch (*s++) {
                    
203{
                    
204    while (isspace(*s)) s++;
                    
205    switch (*s++) {
                    
366
                    
367    sprintf (buf, " %d -", (int)strlen(p));
                    
368    print (buf, info);
                    
490#define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), \
                    
491          (int)(*(X)->ptr++ = ((unsigned char)C)))
                    
492#define agxbuse(X) (agxbputc(X,'\0'),(char*)((X)->ptr = (X)->buf))
                    
                
msapi_utf8.h https://gitlab.com/adam.lukaitis/rufus | C Header | 868 lines
                    
52#define Edit_ReplaceSelU(hCtrl, str) ((void)SendMessageLU(hCtrl, EM_REPLACESEL, (WPARAM)FALSE, str))
                    
53#define ComboBox_AddStringU(hCtrl, str) ((int)(DWORD)SendMessageLU(hCtrl, CB_ADDSTRING, (WPARAM)FALSE, str))
                    
54#define ComboBox_InsertStringU(hCtrl, index, str) ((int)(DWORD)SendMessageLU(hCtrl, CB_INSERTSTRING, (WPARAM)index, str))
                    
61
                    
62// Never ever use isdigit() or isspace(), etc. on UTF-8 strings!
                    
63// These calls take an int and char is signed so MS compilers will produce an assert error on anything that's > 0x80
                    
66#define isdigitU(c) isdigit((unsigned char)(c))
                    
67#define isspaceU(c) isspace((unsigned char)(c))
                    
68#define isxdigitU(c) isxdigit((unsigned char)(c))
                    
287	}
                    
288	ret = (int)strlen(buf) + 2;	// GetDlgItemText seems to add a character
                    
289	err = GetLastError();
                    
342		return CB_ERR;
                    
343	size = (int)SendMessageW(hCtrl, CB_GETLBTEXTLEN, (WPARAM)index, (LPARAM)0);
                    
344	if (size < 0)
                    
                
fmt-merge-msg.c https://gitlab.com/nmusco/git | C | 711 lines
                    
218				ep++;
                    
219			strbuf_addf(out, "  : %.*s", (int)(ep - bp), bp);
                    
220			bp = ep;
                    
244		name_end--;
                    
245	while (isspace(*name_end) && name <= name_end)
                    
246		name_end--;
                    
272			    people->items[0].string,
                    
273			    (int)util_as_integral(&people->items[0]),
                    
274			    people->items[1].string,
                    
274			    people->items[1].string,
                    
275			    (int)util_as_integral(&people->items[1]));
                    
276	else if (people->nr)
                    
278			    people->items[0].string,
                    
279			    (int)util_as_integral(&people->items[0]));
                    
280}
                    
                
config.c https://gitlab.com/nmusco/git | C | 1910 lines
                    
259			continue;
                    
260		if (isspace(c) && !quote) {
                    
261			if (cf->value.len)
                    
344		c = get_next_char();
                    
345	} while (isspace(c));
                    
346
                    
382			return 0;
                    
383		if (isspace(c))
                    
384			return get_extended_base_var(name, c);
                    
423		}
                    
424		if (comment || isspace(c))
                    
425			continue;
                    
535	intmax_t tmp;
                    
536	if (!git_parse_signed(value, &tmp, maximum_signed_value_of_type(int)))
                    
537		return 0;
                    
                
combine-diff.c https://gitlab.com/nmusco/git | C | 1426 lines
                    
115	if (flags & XDF_WHITESPACE_FLAGS) {
                    
116		for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                    
117		for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                    
125		len2--;
                    
126		if (XDL_ISSPACE(line1[len1]) || XDL_ISSPACE(line2[len2])) {
                    
127			if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                    
127			if ((flags & XDF_IGNORE_WHITESPACE_CHANGE) &&
                    
128			    (!XDL_ISSPACE(line1[len1]) || !XDL_ISSPACE(line2[len2])))
                    
129				return 0;
                    
130
                    
131			for (; len1 > 0 && XDL_ISSPACE(line1[len1]); len1--);
                    
132			for (; len2 > 0 && XDL_ISSPACE(line2[len2]); len2--);
                    
139		/* Consume remaining spaces */
                    
140		for (; len1 > 0 && XDL_ISSPACE(line1[len1 - 1]); len1--);
                    
141		for (; len2 > 0 && XDL_ISSPACE(line2[len2 - 1]); len2--);
                    
                
ConvertBytes.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 685 lines
                    
135        do {
                    
136            buf[--pos] = digitmap[(int)(i % radix)];
                    
137        } while ((i /= radix) > 0);
                    
148        do {
                    
149            buf[--charPos] = digitmap[(int)(i & mask)];
                    
150            i >>>= shift;
                    
160        do {
                    
161            buf[--charPos] = digitmap[(int)(i & mask)];
                    
162            i >>>= shift;
                    
217            if(bitcnt < shift) {
                    
218                bitbuf |= ((int)in[--i] & (int)0xff) << bitcnt;
                    
219                bitcnt += 8;
                    
287
                    
288    /** ISSPACE
                    
289     *
                    
                
tw.comp.c https://github.com/okuoku/freebsd-head.git | C | 642 lines
                    
150	for (osp = 0, ptr = *cmp; *ptr; ptr++) {
                    
151	    sp = Isspace(*ptr);
                    
152	    if (sp && osp)
                    
229    /* skip leading spaces */
                    
230    for (; *bf && Isspace(*bf); bf++)
                    
231	continue;
                    
232
                    
233    for (str = bf; *bf && !Isspace(*bf); bf++) {
                    
234	if (ismetahash(*bf))
                    
259#endif /* TDEBUG */
                    
260    return (int) (rv ? estr - str : -1);
                    
261}
                    
439    /* Truncates data if WIDE_STRINGS */
                    
440    stderror(ERR_COMPMIS, (int)sep, msg, short2str(str));
                    
441    return --sp;
                    
                
tkObj.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 660 lines
                    
35#define GET_SIMPLEPIXEL(objPtr)				\
                    
36    ((int) (objPtr)->internalRep.twoPtrValue.ptr1)
                    
37
                    
169	    if (d < 0) {
                    
170		pixelPtr->returnValue = (int) (d - 0.5);
                    
171	    } else {
                    
171	    } else {
                    
172		pixelPtr->returnValue = (int) (d + 0.5);
                    
173	    }
                    
299    }
                    
300    while ((*rest != '\0') && isspace(UCHAR(*rest))) {
                    
301	rest++;
                    
338
                    
339    i = (int) d;
                    
340    if ((units < 0) && (i == d)) {
                    
                
tclUtil.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 1891 lines
                    
136    limit = (list + listLength);
                    
137    while ((p < limit) && (isspace(UCHAR(*p)))) { /* INTL: ISO space. */
                    
138	p++;
                    
186		    if ((p >= limit)
                    
187			    || isspace(UCHAR(*p))) { /* INTL: ISO space. */
                    
188			goto done;
                    
199			while ((p2 < limit)
                    
200				&& (!isspace(UCHAR(*p2))) /* INTL: ISO space. */
                    
201			        && (p2 < p+20)) {
                    
205				"list element in braces followed by \"%.*s\" instead of space",
                    
206				(int) (p2-p), p);
                    
207			Tcl_SetResult(interp, buf, TCL_VOLATILE);
                    
249		    if ((p >= limit)
                    
250			    || isspace(UCHAR(*p))) { /* INTL: ISO space */
                    
251			goto done;
                    
                
forlex.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 1968 lines
                    
82	/* Since EOS is special, need special macros for it */
                    
83#define makeupper(C) (((C) != EOS && islower((int)(C)))? toupper((int)(C)):(C))
                    
84#define iswhitespace(C) ( (C) != EOS && isspace((int)(C)) )
                    
84#define iswhitespace(C) ( (C) != EOS && isspace((int)(C)) )
                    
85#define isadigit(C)     ( (C) != EOS && isdigit((int)(C)) )
                    
86#define isaletter(C)    ( (C) != EOS && isalpha((int)(C)) )
                    
87#define ishex(C) ((C) != EOS && (isdigit((int)(C)) ||\
                    
88			(toupper((int)(C))>='A' && toupper((int)(C))<='F') ))
                    
89
                    
91				/* both underscore and dollar sign */
                    
92#define isidletter(C)    ( (C) != EOS && (isalpha((int)(C)) || \
                    
93					  (C) == '_' || (C) == '$' ) )
                    
176	 ((C) >= ' ' && (C) <= 'z' && \
                    
177	  legal_chars[toascii((int)(C))-toascii(' ')] == (C))) )
                    
178
                    
                
env_config.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 546 lines
                    
53		*p = '\0';
                    
54		for (p = buf; *p != '\0' && isspace((int)*p); ++p)
                    
55			;
                    
87		CONFIG_GET_INT(argv[1], &__v);				\
                    
88		return (f(env->dbenv, (int)__v));			\
                    
89	}								\
                    
270		return (__memp_set_cachesize(
                    
271		    dbenv, (u_int32_t)uv1, (u_int32_t)uv2, (int)lv1));
                    
272	}
                    
298			goto format;
                    
299		env->dir_mode = (int)lv1;
                    
300		return (0);
                    
426		return (__memp_set_mp_max_write(
                    
427		    dbenv, (int)lv1, (db_timeout_t)lv2));
                    
428	}
                    
                
exp_chan.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 661 lines
                    
12#include <errno.h>
                    
13#include <ctype.h>	/* for isspace */
                    
14#include <time.h>	/* for time(3) */
                    
156    }
                    
157    if (ioctl(esPtr->fdin, (int) FIONBIO, &curStatus) < 0) {
                    
158	return errno;
                    
                
yyindent.cpp https://gitlab.com/x33n/phantomjs | C++ | 1190 lines
                    
141    int i = 0;
                    
142    while ( i < (int) t.length() ) {
                    
143        if ( !t[i].isSpace() )
                    
166    int col = 0;
                    
167    if ( index > (int) t.length() )
                    
168        index = t.length();
                    
245
                    
246        if ( pos1 + stop < (int) trimmed.length() && ppIndentSize < stop )
                    
247            stop = ppIndentSize;
                    
253        }
                    
254        while ( i < (int) cap1.length() ) {
                    
255            eraseChar( trimmed, pos1 + i, ';' );
                    
389        k = 0;
                    
390        while ( k < (int) yyLinizerState->line.length() ) {
                    
391            QChar ch = yyLinizerState->line[k];
                    
                
shell.c https://gitlab.com/x33n/phantomjs | C | 1596 lines
                    
77*/
                    
78extern int isatty(int);
                    
79
                    
94/* ctype macros that work with signed characters */
                    
95#define IsSpace(X)  isspace((unsigned char)X)
                    
96#define IsDigit(X)  isdigit((unsigned char)X)
                    
505*/
                    
506#define ArraySize(X)  (int)(sizeof(X)/sizeof(X[0]))
                    
507
                    
514  while( *z2 ){ z2++; }
                    
515  return 0x3fffffff & (int)(z2 - z);
                    
516}
                    
                
os_xml.c https://gitlab.com/Blueprint-Marketing/ossec-hids | C | 536 lines
                    
225
                    
226        else if ((location == 0) && ((c == _R_CONFE) || isspace(c))) {
                    
227            int _ge = 0;
                    
240            _currentlycont = _lxml->cur - 1;
                    
241            if (isspace(c)) {
                    
242                if ((_ga = _getattributes(fp, parent, _lxml)) < 0) {
                    
369    /* Allocate for the "check" */
                    
370    tmp2 = (int *) realloc(_lxml->ck, (_lxml->cur + 1) * sizeof(int));
                    
371    if (tmp2 == NULL) {
                    
472                unsigned short int _err = 1;
                    
473                if (isspace(c)) {
                    
474                    while ((c = _xml_fgetc(fp)) != EOF) {
                    
474                    while ((c = _xml_fgetc(fp)) != EOF) {
                    
475                        if (isspace(c)) {
                    
476                            continue;
                    
                
apprentice.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1996 lines
                    
64#define  EATAB {while (isascii((unsigned char) *l) && \
                    
65          isspace((unsigned char) *l))  ++l;}
                    
66#define LOWCASE(l) (isupper((unsigned char) (l)) ? \
                    
107private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
                    
108private int hextoint(int);
                    
109private const char *getstr(struct magic_set *, struct magic *, const char *,
                    
                
zend-collator.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 630 lines
                    
38
                    
39  while (u_isspace(c)) {
                    
40    c = *++u;
                    
84
                    
85    if (length < (int)sizeof(buf)) {
                    
86      numbuf = buf;
                    
140    c = *s++;
                    
141  } while (u_isspace(c));
                    
142  if (c == 0x2D /*'-'*/) {
                    
                
strbuf.c https://gitlab.com/Blueprint-Marketing/git | C | 820 lines
                    
77{
                    
78	while (sb->len > 0 && isspace((unsigned char)sb->buf[sb->len - 1]))
                    
79		sb->len--;
                    
85	char *b = sb->buf;
                    
86	while (sb->len > 0 && isspace(*b)) {
                    
87		b++;
                    
617		strbuf_addf(buf, "%u.%2.2u GiB",
                    
618			    (int)(bytes >> 30),
                    
619			    (int)(bytes & ((1 << 30) - 1)) / 10737419);
                    
628	} else {
                    
629		strbuf_addf(buf, "%u bytes", (int)bytes);
                    
630	}
                    
                
trio.c https://gitlab.com/thomasphillips3/How-to-Make-a-Computer-Operating-System | C | 2002 lines
                    
249#  define iswpunct(x) ispunct(x)
                    
250#  define iswspace(x) isspace(x)
                    
251#  define iswupper(x) isupper(x)
                    
509
                    
510#define NO_GROUPING ((int)CHAR_MAX)
                    
511
                    
                
fake_log_device.c https://gitlab.com/infraredbg/android_system_core-mt6589 | C | 691 lines
                    
208
                    
209            while (isspace(*tags))
                    
210                tags++;
                    
212            i = 0;
                    
213            while (*tags != '\0' && !isspace(*tags) && *tags != ':' &&
                    
214                i < kMaxTagLen)
                    
251                tags++;
                    
252                if (*tags != '\0' && !isspace(*tags)) {
                    
253                    TRACE("ERROR: garbage in tag env; expected whitespace\n");
                    
315
                    
316    idx = (int) priority - (int) ANDROID_LOG_VERBOSE;
                    
317    if (idx < 0 ||
                    
317    if (idx < 0 ||
                    
318        idx >= (int) (sizeof(priorityStrings) / sizeof(priorityStrings[0])))
                    
319        return "?unknown?";
                    
                
bcmutils.h https://bitbucket.org/EaglesBlood_Development/eb_grouper.git | C Header | 722 lines
                    
49extern const unsigned char bcm_ctype[];
                    
50#define bcm_ismask(x)	(bcm_ctype[(int)(unsigned char)(x)])
                    
51
                    
59#define bcm_ispunct(c)	((bcm_ismask(c)&(_BCM_P)) != 0)
                    
60#define bcm_isspace(c)	((bcm_ismask(c)&(_BCM_S)) != 0)
                    
61#define bcm_isupper(c)	((bcm_ismask(c)&(_BCM_U)) != 0)
                    
275
                    
276#define pktq_len(pq)                    ((int)(pq)->len)
                    
277#define pktq_max(pq)                    ((int)(pq)->max)
                    
277#define pktq_max(pq)                    ((int)(pq)->max)
                    
278#define pktq_avail(pq)                  ((int)((pq)->max - (pq)->len))
                    
279#define pktq_full(pq)                   ((pq)->len >= (pq)->max)
                    
                
bcmutils.h https://bitbucket.org/codefirex/kernel_samsung_jf.git | C Header | 818 lines
                    
52extern const unsigned char bcm_ctype[];
                    
53#define bcm_ismask(x)	(bcm_ctype[(int)(unsigned char)(x)])
                    
54
                    
62#define bcm_ispunct(c)	((bcm_ismask(c)&(_BCM_P)) != 0)
                    
63#define bcm_isspace(c)	((bcm_ismask(c)&(_BCM_S)) != 0)
                    
64#define bcm_isupper(c)	((bcm_ismask(c)&(_BCM_U)) != 0)
                    
311
                    
312#define pktq_len(pq)		((int)(pq)->len)
                    
313#define pktq_max(pq)		((int)(pq)->max)
                    
313#define pktq_max(pq)		((int)(pq)->max)
                    
314#define pktq_avail(pq)		((int)((pq)->max - (pq)->len))
                    
315#define pktq_full(pq)		((pq)->len >= (pq)->max)
                    
                
vtkParseHierarchy.c https://github.com/b3c/VTK-5.8.git | C | 988 lines
                    
34  size_t i = 0;
                    
35  while (isspace(text[i]) && text[i] != '\n') { i++; }
                    
36  return i;
                    
133
                    
134  while (fgets(line, (int)maxlen, fp))
                    
135    {
                    
142      line = (char *)realloc(line, maxlen);
                    
143      if (!fgets(&line[n], (int)(maxlen-n), fp)) { break; }
                    
144      n += strlen(&line[n]);
                    
146
                    
147    while (n > 0 && isspace(line[n-1]))
                    
148      {
                    
289          entry->SuperClasses = (const char **)malloc(sizeof(char *));
                    
290          entry->SuperClassIndex = (int *)malloc(sizeof(int));
                    
291          }
                    
                
vtkMNIObjectReader.cxx https://github.com/b3c/VTK-5.8.git | C++ | 884 lines
                    
220    // Skip leading whitespace
                    
221    while (isspace(*cp))
                    
222      {
                    
342    int val;
                    
343    this->InputStream->read((char *)(&val), sizeof(int));
                    
344    *value = val;
                    
                
vtkQtChartAxis.cxx https://github.com/b3c/VTK-5.8.git | C++ | 1913 lines
                    
204vtkQtChartAxisScale::vtkQtChartAxisScale()
                    
205  : ValueMin((int)0), ValueMax((int)0)
                    
206{
                    
244    {
                    
245    return (int)(this->PixelMin - this->PixelMax);
                    
246    }
                    
270vtkQtChartAxisInternal::vtkQtChartAxisInternal()
                    
271  : Items(), Scale(), Bounds(), Minimum((int)0), Maximum((int)0)
                    
272{
                    
367        this, SLOT(insertLabel(int)));
                    
368    this->connect(this->Model, SIGNAL(removingLabel(int)),
                    
369        this, SLOT(startLabelRemoval(int)));
                    
370    this->connect(this->Model, SIGNAL(labelRemoved(int)),
                    
371        this, SLOT(finishLabelRemoval(int)));
                    
372    this->connect(this->Model, SIGNAL(labelsReset()),
                    
                
mhmsgwnd.c https://github.com/tung/nethackds.git | C | 591 lines
                    
14#define MAX_MSG_LINES		  32
                    
15#define MSG_LINES			  (int)min(iflags.msg_history, MAX_MSG_LINES)
                    
16#define MAXWINDOWTEXT		  200
                    
160			data->xPage = xNewSize/data->xChar;
                    
161			data->xMax = max(0, (int)(1 + data->max_text - data->xPage));
                    
162			data->xPos = min(data->xPos, data->xMax);
                    
211			/* check if the string is empty */
                    
212			for(p = data->window_text[MSG_LINES-1].text; *p && isspace(*p); p++);
                    
213
                    
325    case SB_PAGEUP: 
                    
326         yInc = -(int)si.nPage; 
                    
327         break; 
                    
402        case SB_PAGEUP: 
                    
403             xInc = - (int)si.nPage; 
                    
404             break; 
                    
                
trace_boot.c https://github.com/kvaneesh/linux.git | C | 667 lines
                    
203	while (p < end - 1 && *str != '\0') {
                    
204		if (!isspace(*str))
                    
205			*(p++) = *str;
                    
214	*bufp = p;
                    
215	return (int)len;
                    
216}
                    
                
mono-proclib.c https://github.com/hollow87/mono.git | C | 611 lines
                    
154		s = buf + len;
                    
155		while (g_ascii_isspace (*s)) s++;
                    
156		if (*s++ != ':')
                    
157			continue;
                    
158		while (g_ascii_isspace (*s)) s++;
                    
159		fclose (f);
                    
339	s++;
                    
340	while (g_ascii_isspace (*s)) s++;
                    
341	if (!*s)
                    
343	/* skip the status char */
                    
344	while (*s && !g_ascii_isspace (*s)) s++;
                    
345	if (!*s)
                    
347	for (i = 0; i < pos; ++i) {
                    
348		while (g_ascii_isspace (*s)) s++;
                    
349		if (!*s)
                    
                
TransferEncodingParser.java https://gitlab.com/jaragan/jersey | Java | 319 lines
                    
44
                    
45import static org.glassfish.jersey.jdk.connector.HttpParserUtils.isSpaceOrTab;
                    
46import static org.glassfish.jersey.jdk.connector.HttpParserUtils.skipSpaces;
                    
193                    // If input Buffer has part of the next message - slice it
                    
194                    data = Utils.split(input, (int) (chunkContentStart + thisPacketRemaining));
                    
195
                    
242                            final byte b = input.get(offset);
                    
243                            if (isSpaceOrTab(b) || /*trailing spaces are not allowed by the spec, but some server put it there*/
                    
244                                    b == HttpParserUtils.CR || b == HttpParserUtils.SEMI_COLON) {
                    
                
strings.go https://bitbucket.org/pizzafactory/pf-gcc.git | Go | 559 lines
                    
213func Fields(s string) []string {
                    
214	return FieldsFunc(s, unicode.IsSpace)
                    
215}
                    
219// string is empty, an empty slice is returned.
                    
220func FieldsFunc(s string, f func(int) bool) []string {
                    
221	// First count the fields.
                    
388	// Otherwise, all we can do for now is treat spaces as separators.
                    
389	return unicode.IsSpace(rune)
                    
390}
                    
520func TrimSpace(s string) string {
                    
521	return TrimFunc(s, unicode.IsSpace)
                    
522}
                    
                
ResourceTypes.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1474 lines
                    
115            ALOGW("%s size 0x%x or headerSize 0x%x is not on an integer boundary.",
                    
116                 name, (int)size, (int)headerSize);
                    
117            return BAD_TYPE;
                    
361        ALOGW("Bad string block: header size %d or total size %d is larger than data size %d\n",
                    
362                (int)mHeader->header.headerSize, (int)mHeader->header.size, (int)size);
                    
363        return (mError=BAD_TYPE);
                    
390            ALOGW("Bad string block: string pool starts at %d, after total size %d\n",
                    
391                    (int)mHeader->stringsStart, (int)mHeader->header.size);
                    
392            return (mError=BAD_TYPE);
                    
400                ALOGW("Bad style block: style block starts at %d past data size of %d\n",
                    
401                    (int)mHeader->stylesStart, (int)mHeader->header.size);
                    
402                return (mError=BAD_TYPE);
                    
406                ALOGW("Bad style block: style block starts at %d, before strings at %d\n",
                    
407                    (int)mHeader->stylesStart, (int)mHeader->stringsStart);
                    
408                return (mError=BAD_TYPE);
                    
                
shell.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 1654 lines
                    
78*/
                    
79extern int isatty(int);
                    
80#endif
                    
93/* ctype macros that work with signed characters */
                    
94#define IsSpace(X)  isspace((unsigned char)X)
                    
95#define IsDigit(X)  isdigit((unsigned char)X)
                    
474*/
                    
475#define ArraySize(X)  (int)(sizeof(X)/sizeof(X[0]))
                    
476
                    
483  while( *z2 ){ z2++; }
                    
484  return 0x3fffffff & (int)(z2 - z);
                    
485}
                    
                
convsamp.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1106 lines
                    
30#include <stdio.h>
                    
31#include <ctype.h>            /* for isspace, etc.    */
                    
32#include <assert.h>
                    
112  for( i = 0; i <len; i++) {
                    
113    printf("\\u%04X ", (int)uch[i]);
                    
114  }
                    
141  for( i = 0; i <len; i++) {
                    
142    printf("\\x%02X ", 0x00FF & (int)uch[i]);
                    
143  }
                    
147  for( i = 0; i <len; i++) {
                    
148    if(isgraph(0x00FF & (int)uch[i])) {
                    
149      printf(" '%c' ", (char)uch[i]);
                    
                
fsck.c https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C | 1342 lines
                    
147	else
                    
148		return (int) l;
                    
149}
                    
154{
                    
155	while (*cp && isspace(*cp))
                    
156		cp++;
                    
161{
                    
162	while (*cp && !isspace(*cp))
                    
163		cp++;
                    
                
string_number_conversions.cc https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 544 lines
                    
66    // So round up to allocate 3 output characters per byte, plus 1 for '-'.
                    
67    const int kOutputBufSize = 3 * sizeof(INT) + 1;
                    
68
                    
145  static bool Invoke(char c) {
                    
146    return 0 != isspace(static_cast<unsigned char>(c));
                    
147  }
                    
                
string_number_conversions.cc https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C++ | 516 lines
                    
69    // So round up to allocate 3 output characters per byte, plus 1 for '-'.
                    
70    const int kOutputBufSize = 3 * sizeof(INT) + 1;
                    
71
                    
148  static bool Invoke(char c) {
                    
149    return 0 != isspace(static_cast<unsigned char>(c));
                    
150  }
                    
471         input.c_str() + input.length() == endptr &&
                    
472         !isspace(input[0]);
                    
473}
                    
                
chared.c https://github.com/okuoku/freebsd-head.git | C | 776 lines
                    
226{
                    
227	return (!isspace(p));
                    
228}
                    
234protected char *
                    
235c__prev_word(char *p, char *low, int n, int (*wtest)(int))
                    
236{
                    
258protected char *
                    
259c__next_word(char *p, char *high, int n, int (*wtest)(int))
                    
260{
                    
276protected char *
                    
277cv_next_word(EditLine *el, char *p, char *high, int n, int (*wtest)(int))
                    
278{
                    
289		if (n || el->el_chared.c_vcmd.action != (DELETE|INSERT))
                    
290			while ((p < high) && isspace((unsigned char) *p))
                    
291				p++;
                    
                
commands.c https://github.com/okuoku/freebsd-head.git | C | 2145 lines
                    
76	int inquote = 0;
                    
77	while (isspace((unsigned char)c))
                    
78	    c = *++cp;
                    
98		    continue;
                    
99		} else if (isspace((unsigned char)c))
                    
100		    break;
                    
575#if	defined(AUTHENTICATION)
                    
576extern int auth_togdebug (int);
                    
577#endif
                    
578#if	defined(ENCRYPTION)
                    
579extern int EncryptAutoEnc (int);
                    
580extern int EncryptAutoDec (int);
                    
580extern int EncryptAutoDec (int);
                    
581extern int EncryptDebug (int);
                    
582extern int EncryptVerbose (int);
                    
                
recipient.c https://github.com/okuoku/freebsd-head.git | C | 2072 lines
                    
17
                    
18static void	includetimeout __P((int));
                    
19static ADDRESS	*self_reference __P((ADDRESS *));
                    
224			/* parse the address */
                    
225			while ((isascii(*p) && isspace(*p)) || *p == ',')
                    
226				p++;
                    
394			/* parse the address */
                    
395			while ((isascii(*p) && isspace(*p)) || *p == ',')
                    
396				p++;
                    
                
map.c https://github.com/okuoku/freebsd-head.git | C | 2232 lines
                    
167	{
                    
168		while (isascii(*p) && isspace(*p))
                    
169			p++;
                    
211		  case 'k':
                    
212			while (isascii(*++p) && isspace(*p))
                    
213				continue;
                    
217		  case 'v':
                    
218			while (isascii(*++p) && isspace(*p))
                    
219				continue;
                    
260		}
                    
261		while (*p != '\0' && !(isascii(*p) && isspace(*p)))
                    
262			p++;
                    
277		map->map_file = p;
                    
278		while (*p != '\0' && !(isascii(*p) && isspace(*p)))
                    
279			p++;
                    
                
vfscanf.c https://github.com/okuoku/freebsd-head.git | C | 877 lines
                    
62
                    
63static void		scanalrm __P((int));
                    
64static unsigned char	*sm_sccl __P((char *, unsigned char *));
                    
172		}
                    
173		if (isspace(c))
                    
174		{
                    
176						== 0) &&
                    
177			    isspace(*fp->f_p))
                    
178				nread++, fp->f_r--, fp->f_p++;
                    
342		{
                    
343			while (isspace(*fp->f_p))
                    
344			{
                    
464				n = 0;
                    
465				while (!isspace(*fp->f_p))
                    
466				{
                    
                
nested.c https://github.com/okuoku/freebsd-head.git | C | 733 lines
                    
199        return NULL;
                    
200    while (isspace( (int)*pzValue ) && (dataLen > 0)) {
                    
201        dataLen--; pzValue++;
                    
239        return NULL;
                    
240    while (isspace( (int)*pzValue ) && (dataLen > 0)) {
                    
241        dataLen--; pzValue++;
                    
304
                    
305    while (isspace( (int)*pzScan )) {
                    
306        char ch = *(pzScan++);
                    
315    case ':':
                    
316        while (isspace( (int)*++pzScan ))  ;
                    
317        switch (*pzScan) {
                    
486        pzScan += nameLen + 3;
                    
487        while (isspace(  (int)*pzScan ))  pzScan++;
                    
488    }
                    
                
comp_scan.c https://github.com/okuoku/freebsd-head.git | C | 948 lines
                    
65
                    
66NCURSES_EXPORT_VAR(int)
                    
67_nc_syntax = 0;			/* termcap or terminfo? */
                    
143    while (len--) {
                    
144	if (!isspace(UChar(bufptr[len])))
                    
145	    return bufptr[len];
                    
212
                    
213		if (fgets(result + used, (int) (allocated - used), yyin) != 0) {
                    
214		    bufstart = result;
                    
340
                    
341NCURSES_EXPORT(int)
                    
342_nc_get_token(bool silent)
                    
                
apprentice.c https://github.com/okuoku/freebsd-head.git | C | 2333 lines
                    
53#define	EATAB {while (isascii((unsigned char) *l) && \
                    
54		      isspace((unsigned char) *l))  ++l;}
                    
55#define LOWCASE(l) (isupper((unsigned char) (l)) ? \
                    
90private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
                    
91private int hextoint(int);
                    
92private const char *getstr(struct magic_set *, struct magic *, const char *,
                    
                
ResourceTypes.cpp https://bitbucket.org/festevezga/xobotos.git | C++ | 1465 lines
                    
115            LOGW("%s size 0x%x or headerSize 0x%x is not on an integer boundary.",
                    
116                 name, (int)size, (int)headerSize);
                    
117            return BAD_TYPE;
                    
361        LOGW("Bad string block: header size %d or total size %d is larger than data size %d\n",
                    
362                (int)mHeader->header.headerSize, (int)mHeader->header.size, (int)size);
                    
363        return (mError=BAD_TYPE);
                    
391            LOGW("Bad string block: string pool starts at %d, after total size %d\n",
                    
392                    (int)mHeader->stringsStart, (int)mHeader->header.size);
                    
393            return (mError=BAD_TYPE);
                    
401                LOGW("Bad style block: style block starts at %d past data size of %d\n",
                    
402                    (int)mHeader->stylesStart, (int)mHeader->header.size);
                    
403                return (mError=BAD_TYPE);
                    
407                LOGW("Bad style block: style block starts at %d, before strings at %d\n",
                    
408                    (int)mHeader->stylesStart, (int)mHeader->stringsStart);
                    
409                return (mError=BAD_TYPE);
                    
                
http_ntlm.c https://bitbucket.org/festevezga/doom3.gpl.git | C | 587 lines
                    
103  /* skip initial whitespaces */
                    
104  while(*header && isspace((int)*header))
                    
105    header++;
                    
110
                    
111    while(*header && isspace((int)*header))
                    
112      header++;
                    
284  const char *host=""; /* empty */
                    
285  int domlen=(int)strlen(domain);
                    
286  int hostlen = (int)strlen(host);
                    
                
parser_lib.cpp https://github.com/Morgulas/gccg-dev.git | C++ | 1682 lines
                    
186#if defined(WIN32) || defined(__WIN32__)
                    
187		   seed=(int)clock();
                    
188#else
                    
716	{
                    
717		while(*src && isspace(*src))
                    
718			src++;
                    
                
file.c https://github.com/rameshj03/multitheftauto.git | C | 580 lines
                    
143    from=curlx_strtoofft(data->state.range, &ptr, 0);
                    
144    while(ptr && *ptr && (isspace((int)*ptr) || (*ptr=='-')))
                    
145      ptr++;
                    
                
uint256.h https://github.com/khalahan/bitcoin.git | C Header | 766 lines
                    
194
                    
195    const base_uint operator++(int)
                    
196    {
                    
211
                    
212    const base_uint operator--(int)
                    
213    {
                    
314        // skip leading spaces
                    
315        while (isspace(*psz))
                    
316            psz++;
                    
                
persistence.cpp https://github.com/Jorgepaiz/OpenCV_Library.git | C++ | 1772 lines
                    
69
                    
70static inline bool cv_isspace(char c)
                    
71{
                    
334{
                    
335    if( header_size < (int)sizeof(CvGenericHash) )
                    
336        CV_Error( CV_StsBadSize, "Too small map header_size" );
                    
430    char* new_ptr = 0;
                    
431    int written_len = (int)(ptr - fs->buffer_start);
                    
432    int new_size = (int)((fs->buffer_end - fs->buffer_start)*3/2);
                    
                
pjsua_app_legacy.c https://bitbucket.org/bohlooli/csipsimple2.git | C | 1927 lines
                    
43    else {
                    
44	for (i=0; i<(int)count; ++i) {
                    
45	    pjsua_buddy_info info;
                    
51		    ids[i]+1, 
                    
52		    (int)info.status_text.slen,
                    
53		    info.status_text.ptr, 
                    
53		    info.status_text.ptr, 
                    
54		    (int)info.uri.slen,
                    
55		    info.uri.ptr);
                    
86    /* Left trim */
                    
87    while (pj_isspace(*buf)) {
                    
88	++buf;
                    
117	if (result->nb_result >= 0 && 
                    
118	    result->nb_result <= (int)pjsua_get_buddy_count()) 
                    
119	{
                    
                
sock_linux_kernel.c https://bitbucket.org/bohlooli/csipsimple2.git | C | 755 lines
                    
133{
                    
134#define	UC(b)	(((int)b)&0xff)
                    
135    static char b[18];
                    
149 */
                    
150PJ_DEF(int) pj_inet_aton(const pj_str_t *ccp, struct pj_in_addr *addr)
                    
151{
                    
185	for (;;) {
                    
186	    if (pj_isascii((int)c) && pj_isdigit((int)c)) {
                    
187		val = (val * base) + (c - '0');
                    
188		c = *++cp;
                    
189	    } else if (base==16 && pj_isascii((int)c) && pj_isxdigit((int)c)) {
                    
190		val = (val << 4) |
                    
214     */
                    
215    if (c != '\0' && (!pj_isascii((int)c) || !pj_isspace((int)c)))
                    
216        return (0);
                    
                
mkentry.c https://bitbucket.org/c00kiemon5ter/ioccc-obfuscated-c-contest.git | C | 1301 lines
                    
104/* uuencode process - assumes ASCII */
                    
105#define UUENCODE(c) ((c) ? encode_str[(int)(c)&0x3f] : '`')
                    
106#define UUENCODE_LEN 45		/* max uuencode chunk size */
                    
262	}
                    
263	flagname = (int)argv[i][1];
                    
264
                    
511	/* look at non-whitespace */
                    
512	if (isascii(c) && !isspace(c) && c != '\r') {
                    
513	    switch (c) {
                    
                
mkentry.c https://bitbucket.org/c00kiemon5ter/ioccc-obfuscated-c-contest.git | C | 1280 lines
                    
105/* uuencode process - assumes ASCII */
                    
106#define UUENCODE(c) ((c) ? encode_str[(int)(c)&0x3f] : '`')
                    
107#define UUENCODE_LEN 45		/* max uuencode chunk size */
                    
261	}
                    
262	flagname = (int)argv[i][1];
                    
263
                    
507	/* look at non-whitespace */
                    
508	if (!isascii(c) || !isspace(c)) {
                    
509	    switch (c) {
                    
514		c = fgetc(stream);
                    
515		if (c != EOF && isascii(c) && !isspace(c)) {
                    
516		    /* not followed by whitespace or EOF, count it */
                    
                
mkentry.c https://bitbucket.org/c00kiemon5ter/ioccc-obfuscated-c-contest.git | C | 1212 lines
                    
91/* uuencode process - assumes ASCII */
                    
92#define UUENCODE(c) (encode_str[(int)(c)&0xff])
                    
93#define UUENCODE_LEN 45		/* max uuencode chunk size */
                    
241	}
                    
242	flagname = (int)argv[i][1];
                    
243
                    
479	/* look at non-whitespace */
                    
480	if (!isascii(c) || !isspace(c)) {
                    
481	    switch (c) {
                    
486		c = fgetc(stream);
                    
487		if (c != EOF && isascii(c) && !isspace(c)) {
                    
488		    /* not followed by whitespace or EOF, count it */
                    
                
apr_date.c https://bitbucket.org/jonasteuwen/apache2nginx.git | C | 637 lines
                    
54 */
                    
55APU_DECLARE(int) apr_date_checkmask(const char *data, const char *mask)
                    
56{
                    
162
                    
163    while (*date && apr_isspace(*date))    /* Find first non-whitespace char */
                    
164        ++date;
                    
339    {
                    
340        while (*date && apr_isspace(*date)) /* Find first non-whitespace char */
                    
341            ++date;
                    
                
misc.c https://github.com/albertz/grub-fuse.git | C | 1019 lines
                    
33{
                    
34  return (grub_isspace (c) || c == ',' || c == ';' || c == '|' || c == '&');
                    
35}
                    
234      if (*t1 != *t2)
                    
235	return (int) *t1 - (int) *t2;
                    
236
                    
264
                    
265  return (int) *s1 - (int) *s2;
                    
266}
                    
282
                    
283  return (int) *s1 - (int) *s2;
                    
284}
                    
397int
                    
398grub_isspace (int c)
                    
399{
                    
                
conf.c https://bitbucket.org/danhamilt1/linux.git | C | 716 lines
                    
61
                    
62	while ((isspace(*p)))
                    
63		p++;
                    
69	p = str + l - 1;
                    
70	while ((isspace(*p)))
                    
71		*p-- = 0;
                    
529				char *endp;
                    
530				int tmp = (int)strtol(seed_env, &endp, 10);
                    
531				if (*endp == '\0') {
                    
                
tree.c https://github.com/rofl0r/gdb.git | C | 1306 lines
                    
76STATIC_INLINE_TREE\
                    
77(int)
                    
78split_device_specifier(device *current,
                    
94	   && device_specifier[len] != ':'
                    
95	   && !isspace(device_specifier[len])) {
                    
96      alias[len] = device_specifier[len];
                    
120  chp = spec->buf;
                    
121  while (*chp != '\0' && isspace(*chp))
                    
122    chp++;
                    
127  spec->path = chp;
                    
128  while (*chp != '\0' && !isspace(*chp))
                    
129    chp++;
                    
135  /* and any value */
                    
136  while (*chp != '\0' && isspace(*chp))
                    
137    chp++;
                    
                
datetime_busdaycal.c https://github.com/wizzk42/numpy.git | C | 553 lines
                    
77        for (i = 0; i < len; i += 3) {
                    
78            while (isspace(str[i]))
                    
79                ++i;
                    
243            /* Get the day of the week (1970-01-05 is Monday) */
                    
244            day_of_week = (int)((date - 4) % 7);
                    
245            if (day_of_week < 0) {
                    
                
axis_label_rotated.php https://github.com/fusenigk/mantisbt-1.git | PHP | 512 lines
                    
21 *   // Increase axis space
                    
22 *   $chart->xAxis->axisSpace = .2;
                    
23 * </code>
                    
97
                    
98                $reducement = (int) ( $propertyValue - $propertyValue % 360 );
                    
99                $this->properties['angle'] = (float) $propertyValue - $reducement;
                    
256    {
                    
257        $axisSpaceFactor = abs(
                    
258            ( $this->direction->x == 0 ? 0 :
                    
266
                    
267        $start->x += max( 0., $axisSpaceFactor * $this->offset ) * $axisWidth;
                    
268        $start->y += max( 0., $axisSpaceFactor * $this->offset ) * $axisHeight;
                    
269
                    
270        $end->x += min( 0., $axisSpaceFactor * $this->offset ) * $axisWidth;
                    
271        $end->y += min( 0., $axisSpaceFactor * $this->offset ) * $axisHeight;
                    
                
axis.php https://github.com/fusenigk/mantisbt-1.git | PHP | 544 lines
                    
81 *           The position of the null value.
                    
82 * @property float $axisSpace
                    
83 *           Percent of the chart space used to display axis labels and 
                    
84 *           arrowheads instead of data values.
                    
85 * @property float $outerAxisSpace
                    
86 *           Percent of the chart space used to display axis arrow at the outer
                    
86 *           Percent of the chart space used to display axis arrow at the outer
                    
87 *           side of the axis. If set to null, the axisSpace will be used here.
                    
88 * @property ezcGraphColor $majorGrid
                    
155        $this->properties['nullPosition'] = false;
                    
156        $this->properties['axisSpace'] = .1;
                    
157        $this->properties['outerAxisSpace'] = null;
                    
213                break;
                    
214            case 'axisSpace':
                    
215                if ( !is_numeric( $propertyValue ) ||
                    
                
uint256.h https://github.com/libcoin/libcoin.git | C Header | 839 lines
                    
198
                    
199    const base_uint operator++(int)
                    
200    {
                    
215
                    
216    const base_uint operator--(int)
                    
217    {
                    
322        // skip leading spaces
                    
323        while (isspace(*psz))
                    
324            psz++;
                    
332        const char* pbegin = psz;
                    
333        while (phexdigit[(int)*psz] || *psz == '0')
                    
334            psz++;
                    
                
BigNum.h https://github.com/libcoin/libcoin.git | C Header | 590 lines
                    
136        else
                    
137            return (n > INT_MAX ? INT_MIN : -(int)n);
                    
138    }
                    
319        const char* psz = str.c_str();
                    
320        while (isspace(*psz))
                    
321            psz++;
                    
329            psz += 2;
                    
330        while (isspace(*psz))
                    
331            psz++;
                    
338            *this <<= 4;
                    
339            int n = phexdigit[(int)*psz++];
                    
340            *this += n;
                    
447
                    
448    const CBigNum operator++(int)
                    
449    {
                    
                
pdo_mysql.cpp https://github.com/tstarling/hiphop-php.git | C++ | 1289 lines
                    
199
                    
200    while (i < data_source_len && isspace(data_source[i])) {
                    
201      i++;
                    
390cleanup:
                    
391  for (i = 0; i < (int)(sizeof(vars)/sizeof(vars[0])); i++) {
                    
392    if (vars[i].freeme) {
                    
469  } else {
                    
470    throw_pdo_exception((int)einfo->errcode, uninit_null(), "SQLSTATE[%s] [%d] %s",
                    
471                        pdo_err[0], einfo->errcode, einfo->errmsg);
                    
                
 

Source

Language