GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::filesystem::path::u32string - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. filesystem
  3. path
  4. u32string

最終更新日時: 2026年09月19日 21時31分51秒 (JST)
rotarymars が更新

履歴 編集

function
<filesystem>

std::filesystem::path::u32string(C++17)

std::u32string u32string() const;

概要

UTF-32エンコードで、パス文字列を取得する。

戻り値

*thisが保持するシステムのネイティブフォーマットを持つパスを、UTF-32エンコードで返す。

例

POSIXベースシステムでの例

#include <iostream>
#include <filesystem>

namespace fs = std::filesystem;

int main()
{
  fs::path p = "/usr/bin/clang";
  const std::u32string s = p.u32string();
}

出力

Windowsでの例

#include <iostream>
#include <filesystem>

namespace fs = std::filesystem;

int main()
{
  fs::path p = "foo/bar";
  const std::u32string s = p.u32string();
}

出力

バージョン

言語

  • C++17

処理系

  • Clang: 9.0.1 ✅
  • GCC: 8.1 ✅
  • Visual C++: 2017 Update 7 ✅
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.