Lines Matching refs:string
91 offset(string), XtRPointer, NULL},
394 * The string is used in place, then the string
431 one I made myself. I only care, because I need to free the string. */
624 /* STEP 2: Ensure I have a local wide string.. */
627 I'm being passed a string claiming to be 8bit chars (ie, MB text.)
740 LoadPieces(src, NULL, src->multi_src.string);
801 *((char **) args[i].value) = src->multi_src.string;
828 * Description: Frees the string returned by a get values call
829 * on the string when the source is of type string.
848 /* ASSERT: src->multi_src.allocated_string -> we MUST free .string! */
850 XtFree(src->multi_src.string);
852 src->multi_src.string = NULL;
857 * Description: Saves all the pieces into a file or string as required.
878 * If using the string in place then there is no need to play games
879 * to get the internal info into a readable string.
893 if ( WriteToFile( mb_string, src->multi_src.string ) == FALSE ) {
925 XtFree(src->multi_src.string);
929 src->multi_src.string = mb_string;
988 XtFree(src->multi_src.string);
990 src->multi_src.string = NULL;
995 * Description: Write the string specified to the begining of the file
997 * Arguments: string - string to write.
1003 WriteToFile(string, name)
1004 String string, name;
1009 (write(fd, string, sizeof(unsigned char) * strlen(string)) == -1) )
1020 * Description: store the pieces in memory into a char string.
1066 * Description: Initializes the string or file.
1083 if (src->multi_src.string == NULL)
1088 String temp = XtNewString(src->multi_src.string);
1090 XtFree( src->multi_src.string );
1092 src->multi_src.string = temp;
1094 length = strlen(src->multi_src.string);
1096 /* Wasteful, throwing away the WC string, but need side effect! */
1097 (void) _XawTextMBToWC(d, src->multi_src.string, &length);
1100 src->multi_src.length = strlen(src->multi_src.string);
1123 if (src->multi_src.string == NULL)
1131 if (src->multi_src.string == NULL) {
1134 XtFree( src->multi_src.string );
1136 src->multi_src.string = fileName;
1138 (void) tmpnam(src->multi_src.string);
1152 * .string first check .allocated_string and free it - plumbing Sheeran.
1156 XtFree( src->multi_src.string );
1157 src->multi_src.string = XtNewString(src->multi_src.string);
1162 if ((file = fopen(src->multi_src.string, open_mode)) != 0) {
1170 params[0] = src->multi_src.string;
1183 MB contents of string or the MB contents of src->multi_src.string and places
1188 the length of the parameter string if string is non-NULL. */
1191 LoadPieces(src, file, string)
1194 char* string;
1210 if (string != NULL) {
1212 * ASSERT: IF our caller passed a non-null string, THEN
1213 * src->multi_src.length is currently string's * byte count,
1214 * AND string is in a MB format.
1216 local_str = _XawTextMBToWC(d, (char *)string, &local_length);
1223 local_length = src->multi_src.string ?
1224 strlen( src->multi_src.string ) : 0;
1225 local_str = _XawTextMBToWC( d, (char*)src->multi_src.string, &local_length );
1249 params[1] = src->multi_src.string;
1271 piece->text = (wchar_t*)src->multi_src.string;
1421 /* Convert string "XawAsciiString" and "XawAsciiFile" to quarks. */