Line data Source code
1 : /* Copyright (C) 2025 Robert Schiwon 2 : * 3 : * This file is part of libjdx. 4 : * 5 : * libjdx is free software: you can redistribute it and/or modify it under the 6 : * terms of the GNU Lesser General Public License as published by the Free 7 : * Software Foundation, either version 3 of the License, or (at your option) any 8 : * later version. 9 : * 10 : * libjdx is distributed in the hope that it will be useful, but WITHOUT ANY 11 : * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 12 : * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 13 : * details. 14 : * 15 : * You should have received a copy of the GNU Lesser General Public License 16 : * along with libjdx. If not, see <https://www.gnu.org/licenses/>. 17 : */ 18 : #include "jdx/Ldr.hpp" 19 : 20 2207 : libjdx::jdx::Ldr::Ldr(std::string label) 21 2207 : : m_label{std::move(label)} 22 : { 23 2207 : } 24 : 25 14773 : const std::string& libjdx::jdx::Ldr::getLabel() const 26 : { 27 14773 : return m_label; 28 : } 29 : 30 4 : bool libjdx::jdx::Ldr::isUserDefined() const 31 : { 32 4 : return !m_label.empty() && m_label.at(0) == '$'; 33 : } 34 : 35 4 : bool libjdx::jdx::Ldr::isTechniqueSpecific() const 36 : { 37 4 : return !m_label.empty() && m_label.at(0) == '.'; 38 : }