Lines Matching +defs:temp +defs:string
133 offset(string),
300 if (src->multi_src.use_string_in_place && src->multi_src.string == NULL)
469 * The string is used in place, then the string
502 one I made myself. I only care, because I need to free the string */
711 /* STEP 2: Ensure I have a local wide string.. */
714 I'm being passed a string claiming to be 8bit chars (ie, MB text.)
887 *((char **)args[i].value) = (char *)src->multi_src.string;
911 * Frees the string returned by a get values call
912 * on the string when the source is of type string.
923 XtFree((char *)src->multi_src.string);
925 src->multi_src.string = NULL;
937 * Saves all the pieces into a file or string as required.
953 * If using the string in place then there is no need to play games
954 * to get the internal info into a readable string
970 if (WriteToFile(mb_string, (String)src->multi_src.string) == False) {
1007 XtFree((char *)src->multi_src.string);
1011 src->multi_src.string = mb_string;
1069 XtFree((char *)src->multi_src.string);
1071 src->multi_src.string = NULL;
1080 * string - string to write
1084 * Write the string specified to the beginning of the file specified.
1090 WriteToFile(String string, String name)
1098 if (write(fd, string, strlen(string)) == -1)
1116 * Store the pieces in memory into a char string.
1165 * Initializes the string or file.
1177 if (src->multi_src.string == NULL)
1182 char * temp = XtNewString((char *)src->multi_src.string);
1185 XtFree((char *)src->multi_src.string);
1187 src->multi_src.string = temp;
1189 length = (int)strlen((char *)src->multi_src.string);
1191 /* Wasteful, throwing away the WC string, but need side effect! */
1192 (void)_XawTextMBToWC(d, (char *)src->multi_src.string, &length);
1196 src->multi_src.length = (XawTextPosition)strlen((char *)src->multi_src.string);
1217 if (src->multi_src.string == NULL)
1226 if (src->multi_src.string == NULL) {
1227 src->multi_src.string = (char *)"*multi-src*";
1249 char * temp = XtNewString((char *)src->multi_src.string);
1252 XtFree((char *)src->multi_src.string);
1253 src->multi_src.string = temp;
1258 if ((fd = open((char *)src->multi_src.string, (int)open_mode, 0666)) != -1) {
1271 params[0] = (String)src->multi_src.string;
1283 `file' or the MB contents of string or the MB contents of
1284 src->multi_src.string and places them in Pieces in WC format.
1288 the length of the parameter string if string is non-NULL
1291 LoadPieces(MultiSrcObject src, FILE *file, char *string)
1307 if (string != NULL) {
1309 * ASSERT: IF our caller passed a non-null string, THEN
1310 * src->multi_src.length is currently string's * byte count,
1311 * AND string is in a MB format
1313 local_str = _XawTextMBToWC(d, (char *)string, &local_length);
1321 local_length = (int)(src->multi_src.string ?
1322 strlen((char *)src->multi_src.string) : 0);
1323 local_str = _XawTextMBToWC(d, (char *)src->multi_src.string,
1349 params[1] = src->multi_src.string;
1373 piece->text = (wchar_t*)src->multi_src.string;
1504 XawTextPosition temp;
1506 for (old_piece = NULL, piece = src->multi_src.first_piece, temp = 0;
1508 if ((temp += piece->used) > position) {
1509 *first = temp - piece->used;
1513 *first = temp - (old_piece ? old_piece->used : 0);