Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Prog2
/
szorgalmi_feladatok
/
genetika
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ce0b6f7d
authored
Feb 22, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
locale
parent
8a0db796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
allapotgep.h
+7
-5
No files found.
allapotgep.h
View file @
ce0b6f7d
...
...
@@ -15,8 +15,7 @@
#ifndef ALLAPOTGEP_H
#define ALLAPOTGEP_H
#include <ctype.h>
#include <cstring>
#include <locale>
#include <iostream>
#include <exception>
...
...
@@ -84,7 +83,8 @@ public:
* @return Bazis enum kontans
*/
inline
Bazis
cast
(
char
b
)
{
char
k
=
tolower
(
b
);
std
::
locale
loc
;
char
k
=
std
::
tolower
(
b
,
loc
);
Bazis
ret
;
switch
(
k
)
{
case
'a'
:
ret
=
Adenin
;
break
;
...
...
@@ -111,8 +111,10 @@ inline char cast(Bazis b, bool upper = true) {
case
Guanin
:
ret
=
'g'
;
break
;
case
Timin
:
ret
=
't'
;
break
;
}
if
(
upper
)
ret
=
toupper
(
ret
);
if
(
upper
)
{
std
::
locale
loc
;
ret
=
std
::
toupper
(
ret
,
loc
);
}
return
ret
;
}
...
...
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