-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemurah.h
103 lines (94 loc) · 2.79 KB
/
temurah.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
/*
* temurah.h
*
* Copyright 2012 Marc Sylvestre <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __TEMURAH_H__
#define __TEMURAH_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
/*
* Replaces each letter of the English alphabet with the one that comes
* after it when shiftmode is 1. The process is reversed when shiftmode
* is -1.
*
* Letters are categorized into two groups: consonants and vowels, each
* in two classes: uppercase and lowercase. Thus, letters are replaced
* with those in their respective group and class.
*
* name: avgad
* @param string, int
* @return string
*/
char *avgad(char*, int);
/*
* Wrapper for avgad for forward (positive) shiftmode.
*
* name: favgad
* @param string
* @return string
*/
char *f_avgad(char*);
/*
* Wrapper for avgad for backward (negative) shiftmode.
*
* name: ravgad
* @param string
* @return string
*/
char *r_avgad(char*);
/*
* Replaces the first letter of the English alphabet with the last letter,
* the second with the next-to-last, and so on.
*
* Letters are categorized into two groups: consonants and vowels, each
* in two classes: uppercase and lowercase. Thus, letters are replaced
* with those in their respective group and class.
*
* name: atbash
* @param string
* @return string
*/
char *atbash(char*);
/*
* Replaces the first letter of the English alphabet with the twelfth, the second
* with the thirteenth, and so on.
*
* Letters are categorized into two groups: consonants and vowels, each
* in two classes: uppercase and lowercase. Thus, letters are replaced
* with those in their respective group and class.
*
* name: albam
* @param string
* @return string
*/
char *albam(char*);
/*
* Replaces each letter of the English alphabet with the next found
* within that letter's group.
*
* Letters are categorized into two groups: consonants and vowels, each
* in two classes: uppercase and lowercase. Thus, letters are replaced
* with those in their respective group and class.
*
* name: aikbekar
* @param string
* @return string
*/
char *aikbekar(char*);
#endif /* __TEMURAH_H__ */