src/uri.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 12 Dec 2020 00:01:57 +0100
branchv_0
changeset 3 ae8775e0bc7a
child 4 372b161669e4
permissions -rw-r--r--
configurable/modular dialects and escaping

/**
 * Relational pipes
 * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info;
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

namespace relpipe {
namespace out {
namespace ini {

// TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work

/** general options of the INI writer */
namespace option {
static const wchar_t* AllowSections = L"allow-sections";
// static const wchar_t* AllowSectionTags = L"allow-section-tags";
// static const wchar_t* AllowSubKeys = L"allow-sub-keys";
static const wchar_t* CommentSeparatorForSections = L"comment-separator-for-sections";
static const wchar_t* CommentSeparatorForEntries = L"comment-separator-for-entries";
static const wchar_t* CommentSeparatorStandalone = L"comment-separator-standalone";
static const wchar_t* KeyValueSeparator = L"key-value-separator";
static const wchar_t* Quotes = L"quotes";
static const wchar_t* Dialect = L"dialect";
}

/** names of dynamically registered escaping processors; they are also options */
namespace escaping {
static const wchar_t* Basic = L"escape-basic";
static const wchar_t* JavaProperties = L"escape-java-properties";
static const wchar_t* Backspace = L"escape-backspace";
}

/** not options but a values of the dialect option */
namespace dialect {
static const wchar_t* JavaProperties = L"java-properties";
static const wchar_t* JavaManifestMF = L"java-manifest-mf";
}

}
}
}