Package: GWindows.GStrings

Dependencies

with GNATCOM.Types;

Description

Facilities for working with Generic (ANSI or Unicode depending on buid) strings

Header

package GWindows.GStrings is
 

Other Items:

function To_GString_From_C (Value : GString_C) return GString;
Convert from a C GString to a GString

function To_GString_From_Unbounded
  (Value : GString_Unbounded) return GString;
Convert from an unbounded GString to a bounded GString

function To_GString_C (Value : GString) return GString_C;
Convert from a GString in to a C GString

function To_GString_Unbounded (Value : GString) return GString_Unbounded;
Convert from a GString to an unbounded GString

function To_String (Value : GString) return String;
Convert from a GString in to an Ada String regarless if GString is ANSI or Unicode

function To_Wide_String (Value : GString) return Wide_String;
Convert from a GString to an Ada Wide_String regardless if GString is ANSI or Unicode

function To_GString_From_String (Value : String) return GString;
Create a GString from a String

function To_GString_From_Wide_String (Value : Wide_String) return GString;
Create a GString from a Wide_String

function Image (Value : Integer) return GString;
Returns a GString for the Image of an Integer

function To_GString_From_BSTR (Value : GNATCOM.Types.BSTR;
                               Free  : Boolean            := True)
                              return GString;

function To_BSTR_From_GString (Value : GString) return GNATCOM.Types.BSTR;
Convert between COM BSTRs and GStrings

function To_GString_From_VARIANT (Value : GNATCOM.Types.VARIANT;
                                  Clear : Boolean               := True)
                                 return GString;

function To_VARIANT_From_GString (Value : GString)
                                 return GNATCOM.Types.VARIANT;
Convert between COM VARIANTs and GStrings

procedure To_Upper (Value : in out GString);
Converts case of GString to Upper

procedure To_Lower (Value : in out GString);
Converts case of GString to Lower

procedure To_Mixed (Value : in out GString);
Converts case of GString to Mixed case string

function Resource_ID (ID : Integer) return GString;
Constructs a resource ID string "#XXXX" from the ID
end GWindows.GStrings;