Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Remove Chars from the Middle of a StringDownloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries How to remove a span of characters from a string. CkString str; // Append a Unicode string... str.appendU(L"0123456789"); // Remove a chunk from the middle of the string. int startCharPos = 4; // 0 is the position of the first char. int numChars = 3; str.removeChunk(startCharPos,numChars); // getString() returns an ANSI string. printf("%s\n",str.getString()); // Prints: // 0123789
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.