1
0

wip_parsing

This commit is contained in:
Maelys
2024-09-10 16:27:06 +02:00
commit c671539661
62 changed files with 1863 additions and 0 deletions

20
libft/is/ft_is_space.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_space.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/14 12:49:51 by madumerg #+# #+# */
/* Updated: 2024/02/18 16:08:06 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_is_space(char c)
{
if (c == ' ' || (c >= 9 && c <= 13))
return (1);
return (0);
}

21
libft/is/ft_isalnum.c Normal file
View File

@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 13:03:43 by madumerg #+# #+# */
/* Updated: 2023/11/02 14:58:15 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int i)
{
if ((i >= '0' && i <= '9') || (i >= 'a' && i <= 'z')
|| (i >= 'A' && i <= 'Z'))
return (1);
return (0);
}

20
libft/is/ft_isalpha.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 12:35:26 by madumerg #+# #+# */
/* Updated: 2023/11/02 14:58:21 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int i)
{
if ((i >= 'a' && i <= 'z') || (i >= 'A' && i <= 'Z'))
return (1);
return (0);
}

20
libft/is/ft_isascii.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 13:32:37 by madumerg #+# #+# */
/* Updated: 2023/11/02 14:58:27 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int i)
{
if (i >= 0 && i <= 127)
return (1);
return (0);
}

20
libft/is/ft_isdigit.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 12:47:04 by madumerg #+# #+# */
/* Updated: 2024/02/06 13:04:37 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int i)
{
if (i >= '0' && i <= '9')
return (1);
return (0);
}

20
libft/is/ft_isprint.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 14:08:46 by madumerg #+# #+# */
/* Updated: 2023/11/02 14:58:37 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int i)
{
if (i < 32 || i > 126)
return (0);
return (1);
}