Fossil

Diff
Login

Diff

Differences From Artifact [1998856256]:

To Artifact [80cddafe2a]:


77
78
79
80
81
82
83
84









85






86
87
88
89
90
91
92
#endif

/*
** We find that the built-in isspace() function does not work for
** some international character sets.  So here is a substitute.
*/
static int blob_isspace(char c){
  return c==' '  || c=='\n' || c=='\t' ||









         c=='\r' || c=='\f' || c=='\v';






}

/*
** This routine is called if a blob operation fails because we
** have run out of memory.
*/
static void blob_panic(void){







|
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
>







77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#endif

/*
** We find that the built-in isspace() function does not work for
** some international character sets.  So here is a substitute.
*/
static int blob_isspace(char c){
  return c==' ' || (c<='\r' && c>='\t');
}

/*
** COMMAND: test-isspace
*/
void isspace_cmd(void){
  int i;
  for(i=0; i<=255; i++){
    if( i==' ' || i=='\n' || i=='\t' || i=='\v'
        || i=='\f' || i=='\r' ){
      assert( blob_isspace((char)i) );
    }else{
      assert( !blob_isspace((char)i) );
    }
  }
  printf("All 256 characters OK\n");
}

/*
** This routine is called if a blob operation fails because we
** have run out of memory.
*/
static void blob_panic(void){