CFanatic

Go Back   CFanatic > Programming > C Programming

Join CFanatic Forum Now

Multibyte string conversions topic posted under C Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2007, 08:57 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
rajeshgalla is on a distinguished road
| More
Red face Multibyte string conversions

Hi,

I would like to know what are the C string library functions which are doesn’t support for multibyte data.
Recently I found that strlen() does not give exact length for multibyte. is there any web-site for that information.
Reply With Quote
  #2  
Old 03-22-2008, 02:56 PM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Mahesh.Shetye is on a distinguished road
| More
Re: Multibyte string conversions

Quote:
Originally Posted by rajeshgalla View Post
Hi,

I would like to know what are the C string library functions which are doesn’t support for multibyte data.
Recently I found that strlen() does not give exact length for multibyte. is there any web-site for that information.
Hey dude,
U can use mblen() function to get the length of multibyte char string.
Reply With Quote
  #3  
Old 12-29-2008, 12:22 AM
Member
 
Join Date: Dec 2008
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
hkp819 is on a distinguished road
| More
Re: Multibyte string conversions

I also use strlen(); string but I have never found any mistake.
I think it works accurately.
Reply With Quote
  #4  
Old 12-29-2008, 01:03 AM
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
heavensgate15 is on a distinguished road
| More
Re: Multibyte string conversions

ahw..
Reply With Quote
  #5  
Old 12-07-2010, 07:40 AM
Junior Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sarah189 is on a distinguished road
| More
Re: Multibyte string conversions

The mbstowcs() function converts the multibyte string addressed by s into the corresponding UNICODE string. It stores up to n wide characters in pwcs. It stops conversion after encountering and storing a null character.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where does the string gets stored? Iqbal_h_a C Programming 7 07-31-2008 04:24 PM
How to insert a string into string? Tran C Programming 3 05-21-2008 09:51 PM
Using gdb how to print multibyte or wide char data. rajeshgalla C Programming 0 10-18-2007 08:10 AM
string to double kimw C Programming 1 12-26-2006 01:25 AM
rotate string iwdu15 C# Programming 0 09-29-2006 12:48 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:02 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board