码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • C++ Reference: Standard C++ Library reference: C Library: cwchar


    C++官网参考链接:https://cplusplus.com/reference/cwchar/

    头文件 
    (wchar.h)
    宽字符

    这个头文件定义了几个处理C宽字符串的函数。

    函数 
    输入/输出
    :(大部分是函数的宽字符版本) 
    fgetwc    Get wide character from stream (function)
    fgetws    Get wide string from stream (function)
    fputwc    Write wide character to stream (function)
    fputws    Write wide string to stream (function)
    fwide    Stream orientation (function)
    fwprintf    Write formatted data to stream (function)
    fwscanf    Read formatted data from stream (function)
    getwc    Get wide character from stream (function)
    getwchar    Get wide character from stdin (function)
    putwc    Write wide character to stream (function)
    putwchar    Write wide character to stdout (function)
    swprintf    Write formatted data to wide string (function)
    swscanf    Read formatted data from string (function)
    ungetwc    Unget wide character from stream (function)
    vfwprintf    Write formatted data from variable argument list to stream (function)
    vfwscanf    Read formatted data from stream into variable argument list (function)
    vswprintf    Write formatted data from variable argument list to sized buffer (function)
    vswscanf    Read formatted data from wide string into variable argument list (function)
    vwprintf    Print formatted data from variable argument list to stdout (function)
    vwscanf    Read formatted data into variable argument list (function)
    wprintf    Print formatted data to stdout (function)
    wscanf    Read formatted data from stdin (function)

    通用工具:(函数的宽字符版本)
    wcstod    Convert wide string to double (function)
    wcstof    Convert wide string to float (function)
    wcstol    Convert wide string to long integer (function)
    wcstold    Convert wide string to long double (function)
    wcstoll    Convert wide string to long long integer (function)
    wcstoul    Convert wide string to unsigned long integer (function)
    wcstoull    Convert wide string to unsigned long long integer (function)

    字符/字符串转换:(大部分是函数的扩展版本)
    btowc    Convert single byte character to wide character (function)
    mbrlen    Get length of multibyte character (function)
    mbrtowc    Convert multibyte sequence to wide character (function)
    mbsinit    Check if initial conversion state (function)
    mbsrtowcs    Convert multibyte string to wide-character string (function)
    wcrtomb    Convert wide character to multibyte sequence (function)
    wctob    Convert wide character to single byte (function)
    wcsrtombs    Convert wide-character string to multibyte string (function)

    字符串:(函数的宽字符版本)
    wcscat    Concatenate wide strings (function)
    wcschr    Locate first occurrence of character in wide string (function)
    wcscmp    Compare two strings (function)
    wcscoll    Compare two wide strings using locale (function)
    wcscpy    Copy wide string (function)
    wcscspn    Get span until character in wide string (function)
    wcslen    Get wide string length (function)
    wcsncat    Append characters from wide string (function)
    wcsncmp    Compare characters of two wide strings (function)
    wcsncpy    Copy characters from wide string (function)
    wcspbrk    Locate characters in wide string (function)
    wcsrchr    Locate last occurrence of character in wide string (function)
    wcsspn    Get span of character set in wide string (function)
    wcsstr    Locate substring of wide string (function)
    wcstok    Split wide string into tokens (function)
    wcsxfrm    Transform wide string using locale (function)
    wmemchr    Locate character in block of wide characters (function)
    wmemcmp    Compare two blocks of wide characters (function)
    wmemcpy    Copy block of wide characters (function)
    wmemmove    Move block of wide characters (function)
    wmemset    Fill array of wide characters (function)

    时间:(函数的宽字符版本)
    wcsftime    Format time as wide string (function)

    类型
    mbstate_t    Multibyte conversion state (type)
    size_t    Unsigned integral type (type)
    struct tm    Time structure (type)
    wchar_t    Wide character (type)
    wint_t    Wide int type (type)

    宏常量
    NULL    Null pointer (macro)
    WCHAR_MAX    Maximum value of wchar_t (constant)
    WCHAR_MIN    Minimum value of wchar_t (constant)
    WEOF    Wide end-of-file (constant)

  • 相关阅读:
    【图自动编码器】基础介绍 及 基于PyTorch的图自动编码器实例代码 | MLP应用于节点级别和图级别的任务实例(附实例代码+数据集)
    JAVA计算机毕业设计延安市图书馆管理Mybatis+系统+数据库+调试部署
    【git系列3/4】仓库(GitHub)上的项目的文件是什么换行符?同一个文件可以有不同换行符吗?
    Reflex WMS中阶系列7:已经完成拣货尚未Load的HD如果要取消拣货,该如何处理?
    理解ASP.NET Core - 限流(Rate Limiting)
    [STL]map与set
    手绘地图制作实例详解:如何从0到功能丰富的智慧导览系统
    JavaScript 作用域
    C++设计模式 - 总结
    《DevOps围炉夜话》- Pilot - CNCF开源DevOps项目DevStream简介 - feat. PMC成员胡涛
  • 原文地址:https://blog.csdn.net/weixin_40186813/article/details/127477930
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号