Lines Matching defs:string

71        offset(string), XtRString, NULL},
214 src->ascii_src.string = src->ascii_src.filename;
353 * If we are in ascii string emulation mode. Then the
354 * string is not allowed to grow.
667 String string = StorePiecesInString(old_src);
669 LoadPieces(src, NULL, string);
670 XtFree(string);
702 *((char **) args[i].value) = src->ascii_src.string;
729 * Description: Frees the string returned by a get values call
730 * on the string when the source is of type string.
760 XtFree(src->ascii_src.string);
761 src->ascii_src.string = NULL;
766 * Description: Saves all the pieces into a file or string as required.
792 * If using the string in place then there is no need to play games
793 * to get the internal info into a readable string.
800 char * string;
805 string = StorePiecesInString(src);
807 if (WriteToFile(string, src->ascii_src.string) == FALSE) {
808 XtFree(string);
811 XtFree(string);
815 XtFree(src->ascii_src.string);
819 src->ascii_src.string = StorePiecesInString(src);
841 String string;
855 string = StorePiecesInString(src);
857 ret = WriteToFile(string, name);
858 XtFree(string);
903 XtFree(src->ascii_src.string);
905 src->ascii_src.string = NULL;
910 * Description: Write the string specified to the begining of the file
912 * Arguments: string - string to write.
918 WriteToFile(string, name)
919 String string, name;
924 (write(fd, string, sizeof(unsigned char) * strlen(string)) == -1) )
934 * Description: store the pieces in memory into a standard ascii string.
943 String string;
947 string = XtMalloc((unsigned) sizeof(unsigned char) *
952 strncpy(string + first, piece->text, piece->used);
954 string[src->ascii_src.length] = '\0'; /* NULL terminate this sucker. */
962 LoadPieces(src, NULL, string);
965 return(string);
969 * Description: Initializes the string or file.
985 if (src->ascii_src.string == NULL)
989 src->ascii_src.string = XtNewString(src->ascii_src.string);
991 src->ascii_src.length = strlen(src->ascii_src.string);
995 src->ascii_src.length = strlen(src->ascii_src.string);
1017 if (src->ascii_src.string == NULL)
1025 if (src->ascii_src.string == NULL) {
1026 src->ascii_src.string = fileName;
1027 (void) tmpnam(src->ascii_src.string);
1045 src->ascii_src.string = XtNewString(src->ascii_src.string);
1050 if ((file = fopen(src->ascii_src.string, open_mode)) != 0) {
1058 params[0] = src->ascii_src.string;
1070 LoadPieces(src, file, string)
1073 char * string;
1079 if (string == NULL) {
1094 local_str = src->ascii_src.string;
1097 local_str = string;
1102 piece->text = src->ascii_src.string;
1122 if ( (src->ascii_src.type == XawAsciiFile) && (string == NULL) )
1230 * Description: Just like string copy, but slower and will always
1329 * Description: Creates a string source.