omni/transcoding/transcoding.h

File members: omni/transcoding/transcoding.h

// Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//

#pragma once

#include "api.h"

#include <string>

namespace omni::transcoding
{

enum class Format
{
    ASCII,

    UTF8_XID
};

OMNI_TRANSCODING_API
std::string encodeBootstringIdentifier(const std::string& inputString, const Format& format);

OMNI_TRANSCODING_API
std::string decodeBootstringIdentifier(const std::string& inputString);

OMNI_TRANSCODING_API
std::string encodeBootstringPath(const std::string& inputString, const Format& format);

OMNI_TRANSCODING_API
std::string decodeBootstringPath(const std::string& inputPath);

} // namespace omni::connect::core