REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
is_number.cpp
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3//
4// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6#include "utils/is_number.h"
7
8bool utils::is_number(const std::string::const_iterator &start, const std::string::const_iterator &end) {
9 std::string::const_iterator it = start;
10 while (it != end && std::isdigit(*it))
11 ++it;
12 return it == end;
13}