Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
235a569a
Commit
235a569a
authored
Mar 25, 1999
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multi-byte+locale problem
parent
6febecc5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
src/backend/regex/regcomp.c
src/backend/regex/regcomp.c
+21
-1
No files found.
src/backend/regex/regcomp.c
View file @
235a569a
...
...
@@ -95,7 +95,11 @@ extern "C"
static
void
p_b_eclass
(
struct
parse
*
p
,
cset
*
cs
);
static
pg_wchar
p_b_symbol
(
struct
parse
*
p
);
static
char
p_b_coll_elem
(
struct
parse
*
p
,
int
endc
);
#ifdef MULTIBYTE
static
unsigned
char
othercase
(
int
ch
);
#else
static
char
othercase
(
int
ch
);
#endif
static
void
bothcases
(
struct
parse
*
p
,
int
ch
);
static
void
ordinary
(
struct
parse
*
p
,
int
ch
);
static
void
nonnewline
(
struct
parse
*
p
);
...
...
@@ -1032,18 +1036,34 @@ int endc; /* name ended by endc,']' */
- othercase - return the case counterpart of an alphabetic
== static char othercase(int ch);
*/
#ifdef MULTIBYTE
static
unsigned
char
/* if no counterpart, return ch */
#else
static
char
/* if no counterpart, return ch */
#endif
othercase
(
ch
)
int
ch
;
{
assert
(
pg_isalpha
(
ch
));
if
(
pg_isupper
(
ch
))
#ifdef MULTIBYTE
return
(
unsigned
char
)
tolower
(
ch
);
#else
return
tolower
(
ch
);
#endif
else
if
(
pg_islower
(
ch
))
#ifdef MULTIBYTE
return
(
unsigned
char
)
toupper
(
ch
);
#else
return
toupper
(
ch
);
#endif
else
/* peculiar, but could happen */
#ifdef MULTIBYTE
return
(
unsigned
char
)
ch
;
#else
return
ch
;
#endif
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment