39+ results for 'isspace (int)' (0 ms)

Not the results you expected?

utstrsuppt.c (https://gitlab.com/kush/linux) 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 */

src.c (https://github.com/ssssssssssss/emscripten.git) C · 196 lines

23 // These will be compiled as actual function calls.

24 int (*funcs[])(int) = {

25 isascii,

150 printf("\n");

151 printf("isspace(-45): %d\n", isspace(-45));

152 printf("isspace( 10): %d\n", isspace(10));

153 printf("isspace('a'): %d\n", isspace('a'));

154 printf("isspace('A'): %d\n", isspace('A'));

155 printf("isspace('5'): %d\n", isspace('5'));

156 printf("isspace('.'): %d\n", isspace('.'));

157 printf("isspace(183): %d\n", isspace(183));

158

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++;

fts3_icu.c (https://github.com/nachoalthabe/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/nachoalthabe/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;

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);

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);

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);

155 printf("isspace(183): %d\n", ((*__ctype_b_loc ())[(int) ((183))] & (unsigned short int) _ISspace) != 0);

156

wrapfunc.c (https://github.com/chrishaukap/GameDev.git) C · 518 lines

125 while ((c = Getc(str)) != EOF) {

126 if (!isspace(c)) {

127 Ungetc(c, str);

191 } else {

192 if (!empty || !isspace(c)) {

193 Putc(c, ts);

265 while ((c = Getc(str)) != EOF) {

266 if (!isspace(c)) {

267 Ungetc(c, str);

290 while ((c = Getc(str)) != EOF) {

291 if (!isspace(c))

292 break;

364 } else {

365 if (!empty || !isspace(c)) {

366 Putc(c, ts);

dotlex.c (https://bitbucket.org/akristmann/custom_build.git) C · 360 lines

31

32 static char *lex_gets (int);

33 static 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;

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 {

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)) {

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) {

475 if (isspace(c)) {

476 continue;

ext_icu_uchar.php (https://gitlab.com/Blueprint-Marketing/hhvm) PHP · 619 lines

400 <<__Native,__IsFoldable>> static

401 public function isspace(mixed $cp): mixed;

402

uint256.h (https://github.com/namecoin/namecoin.git) C Header · 765 lines

193

194 const base_uint operator++(int)

195 {

210

211 const base_uint operator--(int)

212 {

313 // skip leading spaces

314 while (isspace(*psz))

315 psz++;

Font.hs (https://bitbucket.org/jmelo_lyncode/thesis.git) Haskell · 360 lines

169 -- Internal.

170 readsPrec p str = [(cread (dropWhile isSpace str),[])]

171 where

199 readsPrec p b =

200 case dropWhile (isSpace) (map toLower b) of

201 'n':'o':'r':'m':'a':'l':xs -> [(NormalWeight,xs)]

238 readsPrec p b =

239 case dropWhile (isSpace) (map toLower b) of

240 'l':'u':'c':'i':'d':'a':xs -> [(Lucida,xs)]

276 readsPrec p b =

277 case dropWhile (isSpace) (map toLower b) of

278 'r':xs -> [(Roman,xs)]

309 readsPrec p b =

310 case dropWhile (isSpace) (map toLower b) of

311 'n':'o':'r':'m':'a':'l':xs -> [(NormalWidth,xs)]

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;

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++;

pystring.cpp (https://github.com/mgmt1969/oiio.git) C++ · 1056 lines

67

68 while ( i < len && ::isspace( str[i] ) ) i++;

69 j = i;

70

71 while ( i < len && ! ::isspace( str[i]) ) i++;

72

80

81 while ( i < len && ::isspace( str[i])) i++;

82 j = i;

101

102 while ( i > 0 && ::isspace( str[i - 1] ) ) i--;

103 j = i;

104

105 while ( i > 0 && ! ::isspace( str[i - 1]) ) i--;

106

Helpers.cs (https://github.com/dotnet/roslyn.git) C# · 172 lines

139 if (argCount == 1 ||

140 IsSpaceChar(invocation.Arguments[1]))

141 {

168

169 private static bool IsSpaceChar(IArgumentOperation argument)

170 => argument.Value.ConstantValue is { HasValue: true, Value: ' ' };

PCollection_HExtendedString.cxx (https://github.com/jehc/MondocosmOS.git) C++ · 583 lines

305 for ( i = 1 ; i <= Length() ; i ++) {

306 if (!IsSpace((Standard_Character)Value(i))) break;

307 }

441 for ( i = Length() ; i >= 1 ; i --) {

442 if (!IsSpace((Standard_Character)Value(i))) break;

443 }

buffer_tests.py (https://gitlab.com/envieidoc/Clover) Python · 206 lines

49

50 def test_isspace(self):

51 self.assertFalse(self.marshal(b'').isspace())

52 self.assertFalse(self.marshal(b'a').isspace())

53 self.assertTrue(self.marshal(b' ').isspace())

54 self.assertTrue(self.marshal(b'\t').isspace())

55 self.assertTrue(self.marshal(b'\r').isspace())

56 self.assertTrue(self.marshal(b'\n').isspace())

57 self.assertTrue(self.marshal(b' \t\r\n').isspace())

58 self.assertFalse(self.marshal(b' \t\r\na').isspace())

59 self.assertRaises(TypeError, self.marshal(b'abc').isspace, 42)

ctype.h (https://bitbucket.org/bohlooli/csipsimple2.git) C Header · 175 lines

47 */

48 PJ_INLINE(int) pj_isalnum(unsigned char c) { return isalnum(c); }

49

56 */

57 PJ_INLINE(int) pj_isalpha(unsigned char c) { return isalpha(c); }

58

65 */

66 PJ_INLINE(int) pj_isascii(unsigned char c) { return c<128; }

67

74 */

75 PJ_INLINE(int) pj_isdigit(unsigned char c) { return isdigit(c); }

76

83 */

84 PJ_INLINE(int) pj_isspace(unsigned char c) { return isspace(c); }

85

sim.c (https://github.com/pandora2000/aiueo.git) C · 526 lines

36 if (f) {

37 if (a == EOF || isspace(a))

38 {

48 {

49 if (!(a == EOF || isspace(a)))

50 {

69 {

70 if (a == EOF || isspace(a))

71 {

81 {

82 if (!(a == EOF || isspace(a)))

83 {

206 //print_float

207 print_int((int)fregs[fgreg1]);

208 }

strings.cpp (https://github.com/boq/dirtsand.git) C++ · 592 lines

428 while (*scanp && max) {

429 if (!separator && isspace(*scanp)) {

430 subs.push_back(DS::String::FromUtf8(cptr, scanp - cptr));

431 --max;

432 while (*scanp && isspace(*scanp))

433 ++scanp;

508 char* startp = strbuf;

509 while (isspace(*startp))

510 ++startp;

521 scanp = startp + strlen(startp);

522 while (scanp > startp && isspace(*(scanp-1)))

523 --scanp;

miolexscan.in (https://bitbucket.org/yingted/openturing.git) Autoconf · 958 lines

341

342 for (cnt = 0 ; cnt < (int) pmLexRecord -> table -> numNotEOS ; cnt++)

343 {

533

534 if (!isspace(myChar) || (myChar == NL))

535 {

589

590 if (isspace (pmLexRecord -> line [pmLexRecord -> pos + 1]))

591 {

599 if (pmLexRecord -> line [pmLexRecord -> pos + myLen] &&

600 !isspace (pmLexRecord -> line [pmLexRecord -> pos + myLen]) &&

601 (strncmp (pmLexRecord -> line + pmLexRecord -> pos,

621

622 if (pmLexRecord -> line[pmLexRecord -> pos] == EOS || isspace(pmLexRecord -> line[pmLexRecord -> pos]))

623 return;

combine_lwa_cmd.c (https://github.com/kstovall/psrfits_utils.git) C · 788 lines

85 /***** check for surplus non-whitespace */

86 while( isspace((int) *end) ) end+=1;

87 if( *end ) goto nothingFound;

156 /***** check for surplus non-whitespace */

157 while( isspace((int) *end) ) end+=1;

158 if( *end ) break;

197 /***** check for surplus non-whitespace */

198 while( isspace((int) *end) ) end+=1;

199 if( *end ) goto nothingFound;

267 /***** check for surplus non-whitespace */

268 while( isspace((int) *end) ) end+=1;

269 if( *end ) break;

307 /***** check for surplus non-whitespace */

308 while( isspace((int) *end) ) end+=1;

309 if( *end ) goto nothingFound;

parsing.py (https://bitbucket.org/lsjcp/jornada-api.git) Python · 250 lines

31 val = val.strip()

32 if val != "" and not val.isspace():

33 if len(val)<2:

55 val = val.strip()

56 if val != "" and not val.isspace():

57 rc+=val + " "

62 val = val.strip()

63 if val != "" and not val.isspace():

64 rc+= val + " "

69 val = val.strip()

70 if val != "" and not val.isspace():

71 rc += val + " "

81 val = val.strip()

82 if val != "" and not val.isspace():

83 rc.append(val+ " ")

Lexer.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 482 lines

74

75 while (Character.isSpaceChar(c) || (c == '\n')) {

76 if (calcIndent) {

394

395 while (Character.isSpaceChar(c) || (c == '\n')) {

396 if (c == '\n') {

411 char c = getSymbol();

412 while (Character.isSpaceChar(c) || (c == '\n')) {

413 if (c == '\n') {

analysis.c (https://github.com/ekcell/lovdbyless.git) C · 1552 lines

33 return tk_set(tk, start, (int)(end - start),

34 (int)(start - text), (int)(end - text), pos_inc);

35 }

157 int num_bytes;

158 if ((num_bytes = (int)mbrtowc(wchr, s, MB_CUR_MAX, state)) < 0) {

159 const char *t = s;

162 ZEROSET(state, mbstate_t);

163 num_bytes = (int)mbrtowc(wchr, t, MB_CUR_MAX, state);

164 } while ((num_bytes < 0) && (*t != 0));

514 ts->t = t;

515 return w_tk_set(&(CTS(ts)->token), wbuf, (int)(start - ts->text),

516 (int)(t - ts->text), 1);

619

620 i = (int)(t - ts->t);

621 if (i > MAX_WORD_SIZE) {

strutilascii.c (https://gitlab.com/oyvholm/mc) C · 783 lines

119 static int

120 str_ascii_isspace (const char *text)

121 {

122 return g_ascii_isspace ((gchar) text[0]);

123 }

273

274 if ((int) length <= width)

275 {

289 /* add space before text */

290 if ((int) remain <= ident)

291 goto finally;

742 result.cprev_noncomb_char = str_ascii_cprev_noncomb_char;

743 result.char_isspace = str_ascii_isspace;

744 result.char_ispunct = str_ascii_ispunct;

lexer.c (https://bitbucket.org/hyades/compiler.git) C · 1210 lines

37 //printf(" %c ",c);

38 if((int)c==EOF)return NULL;

39 else if(c=='-')

163 }

164 else if(isspace(c))

165 {

743 }

744 else if(isspace(c))

745 {

IndentingTransformerImpl.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 353 lines ✨ Summary

This Java code implements a custom XML parser that extends the standard SAX (Simple API for XML) parser. It adds features such as indentation, whitespace trimming, and handling of specific XML elements like CDATA sections and comments. The parser outputs white space to reflect the current indentation level, making the parsed XML more readable.

225 while(start < end && Character.isWhitespace(array[start])) {

226 if(Character.isSpaceChar(array[start]) || array[start] == '\t') {

227 start++;

238 while(start < end && Character.isWhitespace(array[end - 1])) {

239 if(Character.isSpaceChar(array[end - 1]) || array[start] == '\t') {

240 end--;

axis_label_rotated.php (https://github.com/Proudio-Interactive/phpUnderControl.git) PHP · 433 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;

154 $gridBoundings = null;

155 list( $xSpace, $ySpace ) = $this->getAxisSpace( $renderer, $boundings, $axis, $innerBoundings, $gridBoundings );

156

209

210 $axisSpaceFactor = abs(

211 ( $this->direction->x == 0 ? 0 :

217 $start = new ezcGraphCoordinate(

218 $start->x + max( 0., $axisSpaceFactor * $this->offset ) * ( $end->x - $start->x ),

219 $start->y + max( 0., $axisSpaceFactor * $this->offset ) * ( $end->y - $start->y )

token.c (https://bitbucket.org/becoggins/nmr_wash.git) C · 944 lines

153 {

154 if (!isspace( (int) *string ))

155 {

161 {

162 if (isspace( (int) *string ))

163 {

188 {

189 if (!isspace( (int) *string ))

190 {

203 {

204 if (isspace( (int) *string ))

205 {

653 {

654 while( *string && !isspace((int)*string) )

655 {

FileTokenizer.cpp (https://bitbucket.org/pshriwise/moab.git) C++ · 445 lines

71 // If the current character is not a space, we've found a token.

72 if( !isspace( *nextToken ) ) break;

73

83 char* result = nextToken;

84 while( nextToken != bufferEnd && !isspace( static_cast< unsigned char >( *nextToken ) ) )

85 ++nextToken;

105 // terminating the token.

106 while( nextToken != bufferEnd && !isspace( *nextToken ) )

107 ++nextToken;

207

208 result = (int)i;

209 if( i != (long)result ) MB_SET_ERR_RET_VAL( "Numeric overflow at line " << line_number(), false );

401 // If the current character is not a space, the we've failed.

402 if( !isspace( *nextToken ) )

403 if( report_error ) MB_SET_ERR_RET_VAL( "Expected newline at line " << line_number(), false );

color.c (https://github.com/ab3416/linux-2.6.git) C · 324 lines

14

15 for (i = 0; i < (int)ARRAY_SIZE(color_names); i++) {

16 const char *str = color_names[i];

65

66 while (len > 0 && !isspace(word[wordlen])) {

67 wordlen++;

71 ptr = word + wordlen;

72 while (len > 0 && isspace(*ptr)) {

73 ptr++;

axis_label_rotated.php (https://github.com/proyectoalba/alba.git) PHP · 429 lines

22 * // Increase axis space

23 * $chart->xAxis->axisSpace = .2;

24 * </code>

97

98 $reducement = (int) ( $propertyValue - $propertyValue % 360 );

99 $this->properties['angle'] = (float) $propertyValue - $reducement;

148 $gridBoundings = new ezcGraphBoundings(

149 $boundings->x0 + $renderer->xAxisSpace,

150 $boundings->y0 + $renderer->yAxisSpace,

151 $boundings->x1 - $renderer->xAxisSpace,

152 $boundings->y1 - $renderer->yAxisSpace

173 $height = abs(

174 $renderer->yAxisSpace * $this->direction->x +

175 $renderer->xAxisSpace * $this->direction->y

axis.php (https://github.com/proyectoalba/alba.git) PHP · 438 lines

14 * The position of the null value.

15 * @property float $axisSpace

16 * Percent of the chart space used to display axis labels and

75 $this->properties['nullPosition'] = false;

76 $this->properties['axisSpace'] = .1;

77 $this->properties['majorGrid'] = false;

131 break;

132 case 'axisSpace':

133 if ( !is_numeric( $propertyValue ) ||

139

140 $this->properties['axisSpace'] = (float) $propertyValue;

141 break;

178

179 $this->properties['labelSize'] = (int) $propertyValue;

180 break;

lobject.c (https://github.com/Fleurer/lua_5.1.4_commentary.git) C · 214 lines

96 if (*endptr == '\0') return 1; /* most common case */

97 while (isspace(cast(unsigned char, *endptr))) endptr++;

98 if (*endptr != '\0') return 0; /* invalid trailing characters? */

buffer.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 5722 lines

487 workshop_file_closed_lineno((char *)buf->b_ffname,

488 (int)buf->b_last_cursor.lnum);

489 #endif

895 do_current = bnr;

896 else if (do_buffer(command, DOBUF_FIRST, FORWARD, (int)bnr,

897 forceit) == OK)

swigmain.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 206 lines ✨ Summary

This C++ code is the main entry point for SWIG, a software development tool that generates wrappers for various programming languages. It collects command line options, registers built-in language modules, and instantiates a module for code generation. The program then starts parsing the input files and generating the corresponding wrappers.

121 while ((b != be) && *c && (argc < arge)) {

122 while (isspace(*c) && *c) ++c;

123 if (*c) {

126 }

127 while ((b != be) && *c && !isspace(*c)) {

128 *(b++) = *(c++);