Location: Symbol Reference > Files > JwsclStrings.pas
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwsclStrings.pas

Project JEDI Windows Security Code Library (JWSCL) 

Contains ansi- and unicode string types that are used by the units of JWSCL

The Original Code is JwsclAnsiUniCode.pas. 

The Initial Developer of the Original Code is Christian Wimmer. Portions created by Christian Wimmer are Copyright (C) Christian Wimmer. All rights reserved.

Christian Wimmer

Name 
Description 
TJwCharSize defines the size of an char in an ansi- or unicode compilation. 
 
Name 
Description 
 
JwCompareString compare two TJwString values using ANSICODE or UNICODE settings depending on the UNICODE compiler directive. The comparison is done using the locale user setting.
 
 
This is function JwCreateLSAString. 
 
JwCreateUnicodeStringInitializes a counted Unicode string 
 
JwCreateUnicodeStringReturns a pointer to an initialized unicode string  
 
JwCreateUnicodeStringSelfRelativReturns a pointer to an initialized unicode string.
The new unicode string is a continues block of memory that has an empty string with StrLen count of chars. 
 
JwFormatString formats a ansi- or unicode string and calls JwReplaceBreaks
 
JwFormatStringEx behaves like JwFormatString but without calling JwReplaceBreaks 
 
This is function JwFreeLSAString. 
 
JwOutputDebugString calls API OutputDebugString but works with TJwString 
 
JwReplaceBreaks replaces "r" and "n" with break line chars. 
 
This is function JwStringArrayIndexOf. 
 
JwTSUnicodeStringToJwString converts a TS_UNICODE_STRING into a TJwString 
 
JwUnicodeStringToJwString converts a UNICODE_STRING into a TJwString 
 
LoadLocalizedString loads a string from a resource using a language id.  
Name 
Description 
This is type TJwAnsiString. 
TJwChar defines an unicode wide char type if compiler directive UNICODE is defined; otherwise ansicode 
TJwPChar defines an unicode pointer to wide char type if compiler directive UNICODE is defined; otherwise ansicode 
TJwString defines an unicode string type if compiler directive UNICODE is defined; otherwise ansicode Delphi 2009 uses the more efficient UnicodeString type.
However this type must not be used for COM Methods! A cast to WideString is necessary before!
If you get an error here for <= Delphi2007 you must make sure that you're using an updated version of jedi.inc (included by jwscl.inc) that supports the DELPHI2009_UP switch! 
TJwTJwStringArray defines an dynamic array of TJwString. It can be either ansi or unicode strings 
This is type TJwWideString. 
This is type TJwWideStringArray. 
License

The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ 

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. 

Alternatively, the contents of this file may be used under the terms of the GNU Lesser General Public License (the "LGPL License"), in which case the provisions of the LGPL License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the LGPL License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the LGPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the LGPL License. 

For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!