Raised This Month: $ Target: $400
 0% 

[stock]utf8 safe string cutter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-11-2013 , 15:57   Re: [stock]utf8 safe string cutter
Reply With Quote #1

I'm not sure exactly what all this does, but...

Code:
if(UTF8MULTIBYTECHAR & buffer[i] == '\0'){
Why not just use IsCharMB here?

Having said that, if you're dealing with GetClientName, the String you put it in should be MAX_NAME_LENGTH in size.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-11-2013 at 15:59.
Powerlord is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode