Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_base64.h
Go to the documentation of this file.
1/*
2 * Nilorea Library
3 * Copyright (C) 2005-2026 Castagnier Mickael
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 * implied. See the License for the specific language governing
15 * permissions and limitations under the License.
16 *
17 * SPDX-License-Identifier: Apache-2.0
18 */
19
28#ifndef __N_BASE64_H
29#define __N_BASE64_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
40#include <stdlib.h>
41#include <memory.h>
42#include "nilorea/n_str.h"
43
45bool n_isupper(char c);
47bool n_islower(char c);
49bool n_isalpha(char c);
51char n_toupper(char c);
53char n_tolower(char c);
54
58N_STR* n_base64_decode(N_STR* bufcoded);
59
64#ifdef __cplusplus
65}
66#endif
67/* #ifndef __N_BASE64_H */
68#endif
char n_tolower(char c)
convert a character to lowercase
Definition n_base64.c:143
N_STR * n_base64_decode(N_STR *bufcoded)
decode a base64 encoded N_STR
Definition n_base64.c:188
bool n_isupper(char c)
check if a character is uppercase
Definition n_base64.c:105
char n_toupper(char c)
convert a character to uppercase
Definition n_base64.c:132
bool n_islower(char c)
check if a character is lowercase
Definition n_base64.c:114
bool n_isalpha(char c)
check if a character is alphabetic
Definition n_base64.c:123
N_STR * n_base64_encode(N_STR *string)
encode a N_STR to base64
Definition n_base64.c:270
A box including a string and his lenght.
Definition n_str.h:61
N_STR and string function declaration.