update stuff
This commit is contained in:
parent
5973022688
commit
544ed8b045
194 changed files with 2060 additions and 1464 deletions
63
stdme/include/me/char/char.h
Normal file
63
stdme/include/me/char/char.h
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* char.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/19 17:11:41 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/05/19 17:11:42 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef CHAR_H
|
||||
#define CHAR_H
|
||||
|
||||
#include "me/types.h"
|
||||
|
||||
/// @brief Check if a character is alphanumeric
|
||||
/// @param chr char to check
|
||||
/// @return chr is a alphanumeric
|
||||
bool me_isalnum(char chr);
|
||||
|
||||
/// @brief Check if a character is alphabetic
|
||||
/// @param chr char to check
|
||||
/// @return chr is a alphabetic
|
||||
bool me_isalpha(char chr);
|
||||
|
||||
/// @brief Check if a character is a digit
|
||||
/// @param chr
|
||||
/// @return chr is a digit
|
||||
bool me_isdigit(char chr);
|
||||
|
||||
/// @brief Check if a character is in the ascii range
|
||||
/// @param chr char to check
|
||||
/// @return chr is a ascii character
|
||||
bool me_isascii(char chr);
|
||||
|
||||
/// @brief Check if a character is lowercase
|
||||
/// @param chr char to check
|
||||
/// @return chr is a lowercase letter
|
||||
bool me_islower(char chr);
|
||||
|
||||
/// @brief Check if a character is uppercase
|
||||
/// @param chr char to check
|
||||
/// @return chr is a uppercase letter
|
||||
bool me_isupper(char chr);
|
||||
|
||||
/// @brief Check if a character is a whitespace
|
||||
/// @param chr char to check
|
||||
/// @return chr is a whitespace
|
||||
bool me_isspace(char chr);
|
||||
|
||||
/// @brief Set the character to lowercase if it's uppercase
|
||||
/// @param chr char to convert
|
||||
/// @return uppercase chr or chr if not a lowercase letter
|
||||
char me_tolower(char chr);
|
||||
|
||||
/// @brief Set the character to uppercase if it's lowercase
|
||||
/// @param chr char to convert
|
||||
/// @return lowercase chr or chr if not a uppercase letter
|
||||
char me_toupper(char chr);
|
||||
|
||||
#endif /* CHAR_H */
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isalnum.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:39:39 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISALNUM_H
|
||||
# define ISALNUM_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isalnum(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isalpha.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:39:36 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISALPHA_H
|
||||
# define ISALPHA_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isalpha(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isascii.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/09 17:51:01 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:39:33 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISASCII_H
|
||||
# define ISASCII_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isascii(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isdigit.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:41:55 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISDIGIT_H
|
||||
# define ISDIGIT_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isdigit(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* islower.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:48:25 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISLOWER_H
|
||||
# define ISLOWER_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_islower(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isprint.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:44:49 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISPRINT_H
|
||||
# define ISPRINT_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isprint(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isspace.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/06 14:26:25 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:45:02 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISSPACE_H
|
||||
# define ISSPACE_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isspace(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isupper.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:19:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:45:16 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ISUPPER_H
|
||||
# define ISUPPER_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_isupper(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* tolower.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:47:50 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:45:33 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TOLOWER_H
|
||||
# define TOLOWER_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_tolower(char chr);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* toupper.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 16:47:50 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/09 16:45:52 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TOUPPER_H
|
||||
# define TOUPPER_H
|
||||
|
||||
# include "me/types.h"
|
||||
|
||||
bool me_toupper(char chr);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue