Mailinglist Archive: yast-commit (215 mails)

< Previous Next >
[yast-commit] r67856 - /trunk/core/libycp/src/YCPBuiltinString.cc
Author: aschnell
Date: Tue Apr 3 19:43:01 2012
New Revision: 67856

URL: http://svn.opensuse.org/viewcvs/yast?rev=67856&view=rev
Log:
- simplification, no need for wcslen

Modified:
trunk/core/libycp/src/YCPBuiltinString.cc

Modified: trunk/core/libycp/src/YCPBuiltinString.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPBuiltinString.cc?rev=67856&r1=67855&r2=67856&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPBuiltinString.cc (original)
+++ trunk/core/libycp/src/YCPBuiltinString.cc Tue Apr 3 19:43:01 2012
@@ -95,8 +95,8 @@
// UTF-8 based length
std::wstring out;
utf82wchar(s->value (), &out);
-
- return YCPInteger (wcslen (out.c_str()));;
+
+ return YCPInteger(out.size());
}



--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages