GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::regex_traits::length(3) C++ Standard Libary std::regex_traits::length(3)

std::regex_traits::length - std::regex_traits::length


static std::size_t length(const char_type* p);


Calculates the length of a null-terminated character sequence, that is, the smallest
i such that p[i]==0.


Standard library specializations of std::regex_traits execute
std::char_traits<CharT>::length(p);


p - pointer to the first element of the null-terminated character sequence


The length of the null-terminated character string.

// Run this code


#include <regex>
#include <iostream>


int main()
{
std::cout << std::regex_traits<char>::length(u8"Кошка") << '\n'
<< std::regex_traits<wchar_t>::length(L"Кошка") << '\n';
}


10
5

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.