gecko-dev/mfbt/Path.h
Masatoshi Kimura 17fb30182d Bug 1428543 - Add mozilla::filesystem::Path and use it in nsIFile. r=froydnj
Currently only |value_type| is implemented.

MozReview-Commit-ID: 1mejzvkuako

--HG--
extra : rebase_source : 69e08073adbb9a866db26e515702a0659ece0a70
extra : intermediate-source : 3696381ddfdc19ab2f901ca4247e1cb4efb27731
extra : source : 35d760da1d73dd51614f434c26e5ce80ff690829
2017-12-28 03:03:35 +09:00

33 lines
774 B
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Represents the native path format on the platform. */
#ifndef mozilla_Path_h
#define mozilla_Path_h
namespace mozilla {
namespace filesystem {
/*
* Mozilla vaiant of std::filesystem::path.
* Only |value_type| is implemented at the moment.
*/
class Path
{
public:
#ifdef XP_WIN
using value_type = char16_t;
#else
using value_type = char;
#endif
};
} /* namespace filesystem */
} /* namespace mozilla */
#endif /* mozilla_Path_h */