GY-63_MS5611/libraries/palindrome/palindrome.h
2023-11-14 17:12:20 +01:00

38 lines
726 B
C++

#pragma once
//
// FILE: palindrome.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.3
// PURPOSE: Arduino library to do palindrome experiments.
// URL: https://github.com/RobTillaart/palindrome
//
#include "Arduino.h"
#define PALINDROME_LIB_VERSION (F("0.1.3"))
class palindrome
{
public:
palindrome();
bool isPalindrome(const char * str);
int findPalindrome(const char * str, int & position, int & length);
int findEvenPalindrome(const char * str, int & position, int & length);
int findOddPalindrome(const char * str, int & position, int & length);
int palindromeCount(const char * str);
float palindromePercentage(const char * str);
private:
};
// -- END OF FILE --