CommonUtilities.h 610 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/std/string/string.h>
  10. namespace SimulationInterfaces::Utils
  11. {
  12. //! Convert a relative path to a URI
  13. //! relative path: "path/to/file.txt"
  14. //! URI: "product_asset:///path/to/file.txt"
  15. AZStd::string RelPathToUri(AZStd::string_view relPath);
  16. AZStd::string UriToRelPath(AZStd::string_view relPath);
  17. } // namespace SimulationInterfaces::Utils