Changeset 129 for trunk/foundation/class_c/nomstring.c
- Timestamp:
- Dec 1, 2006, 6:12:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/foundation/class_c/nomstring.c
r122 r129 62 62 } 63 63 64 /* Returns the C string held by this NOMString */64 /* Returns the C string held by this NOMString */ 65 65 NOM_Scope CORBA_string NOMLINK impl_NOMString_getCString(NOMString* nomSelf, CORBA_Environment *ev) 66 66 { … … 104 104 } 105 105 106 NOM_Scope CORBA_unsigned_long NOMLINK impl_NOMString_length(NOMString* nomSelf, CORBA_Environment *ev) 107 { 108 NOMStringData* nomThis=NOMStringGetData(nomSelf); 109 110 return _gString->len; 111 } 112 113 NOM_Scope PNOMString NOMLINK impl_NOMString_truncateString(NOMString* nomSelf, const CORBA_unsigned_long ulNewLen, 114 CORBA_Environment *ev) 115 { 116 NOMStringData* nomThis=NOMStringGetData(nomSelf); 117 118 g_string_truncate(_gString, ulNewLen); 119 120 return nomSelf; 121 } 122 123 106 124 NOM_Scope void NOMLINK impl_NOMString_nomInit(NOMString* nomSelf, CORBA_Environment *ev) 107 125 { … … 110 128 NOMString_nomInit_parent((NOMObject*)nomSelf, ev); 111 129 112 /* Alloc a n emptyGString */113 _gString=g_string_new( NULL);130 /* Alloc a zero length GString */ 131 _gString=g_string_new(""); 114 132 } 115 133
Note:
See TracChangeset
for help on using the changeset viewer.