11fdab961Scgyurgyik //===-- Implementation of isspace------------------------------------------===// 21fdab961Scgyurgyik // 31fdab961Scgyurgyik // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 41fdab961Scgyurgyik // See https://llvm.org/LICENSE.txt for license information. 51fdab961Scgyurgyik // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 61fdab961Scgyurgyik // 71fdab961Scgyurgyik //===----------------------------------------------------------------------===// 81fdab961Scgyurgyik 91fdab961Scgyurgyik #include "src/ctype/isspace.h" 10c120edc7SMichael Jones #include "src/__support/ctype_utils.h" 111fdab961Scgyurgyik 121fdab961Scgyurgyik #include "src/__support/common.h" 131fdab961Scgyurgyik 141fdab961Scgyurgyik namespace __llvm_libc { 151fdab961Scgyurgyik 161fdab961Scgyurgyik // TODO: Currently restricted to default locale. 171fdab961Scgyurgyik // These should be extended using locale information. 18*9cdd4ea0SAlfonso Gregory LLVM_LIBC_FUNCTION(int, isspace, (int c)) { 19*9cdd4ea0SAlfonso Gregory return static_cast<int>(internal::isspace(static_cast<unsigned>(c))); 20*9cdd4ea0SAlfonso Gregory } 211fdab961Scgyurgyik 221fdab961Scgyurgyik } // namespace __llvm_libc 23