美文网首页
ByteLength - C++ Builder

ByteLength - C++ Builder

作者: 玄坴 | 来源:发表于2021-09-13 15:04 被阅读0次

    C++ Builder 参考手册System::SysutilsByteLength


    字符串的字节数

    头文件:#include <System.SysUtils.hpp>
    命名空间:System::Sysutils
    函数原型:

    int __fastcall ByteLength(const System::UnicodeString S);
    

    参数:

    • S:字符串

    返回值:

    • 字符串的字节数,不包括结束符;
    • 由于 S 是 UTF-16 编码的,所以字节数始终等于字符串长度的二倍,即 S.Length()*2。

    相关:

    • System::Sysutils::CharLength
    • System::Sysutils::StrCharLength
    • System::Sysutils::AnsiLastChar
    • System::Sysutils::AnsiStrLastChar
    • System::Sysutils::AnsiPos
    • System::Sysutils::AnsiStrPos
    • System::Sysutils::AnsiStrScan
    • System::Sysutils::AnsiStrRScan
    • System::Sysutils::CharToElementIndex
    • System::Sysutils::CharToElementLen
    • System::Sysutils::ElementToCharIndex
    • System::Sysutils::ElementToCharLen
    • System::Sysutils
    • std::mblen
    • std::_mbstrlen
    • <cstdlib>
    • std::strlen, std::_fstrlen, std::_tcslen, std::wcslen
    • <cstring>

    C++ Builder 参考手册System::SysutilsByteLength

    相关文章

      网友评论

          本文标题:ByteLength - C++ Builder

          本文链接:https://www.haomeiwen.com/subject/hipdahtx.html