Lines Matching refs:string

67        offset(string), XtRString, NULL},
200 src->ascii_src.string = src->ascii_src.filename;
220 src->ascii_src.string = NULL;
344 * If we are in ascii string emulation mode. Then the
345 * string is not allowed to grow.
629 if ( (old_src->ascii_src.string != src->ascii_src.string) ||
631 if (old_src->ascii_src.string == src->ascii_src.string) {
632 /* Fool it into not freeing the string */
648 src->ascii_src.string = NULL;
658 String string = StorePiecesInString(old_src);
660 LoadPieces(src, NULL, string);
661 XtFree(string);
692 *((char **) args[i].value) = src->ascii_src.string;
718 * Description: Frees the string returned by a get values call
719 * on the string when the source is of type string.
732 XtFree(src->ascii_src.string);
737 * Description: Saves all the pieces into a file or string as required.
749 * If using the string in place then there is no need to play games
750 * to get the internal info into a readable string.
757 char * string;
762 string = StorePiecesInString(src);
764 if (WriteToFile(src, string, src->ascii_src.string) == FALSE) {
765 XtFree(string);
768 XtFree(string);
770 else { /* This is a string widget. */
772 XtFree(src->ascii_src.string);
776 src->ascii_src.string = StorePiecesInString(src);
795 String string;
798 string = StorePiecesInString(src);
800 ret = WriteToFile(src, string, name);
801 XtFree(string);
831 XtFree(src->ascii_src.string);
835 * Description: Write the string specified to the begining of the file
838 * string - string to write.
845 WriteToFile(src, string, name)
847 String string, name;
853 (write(fd, string, sizeof(unsigned char) * strlen(string)) == -1) ) {
868 * Description: store the pieces in memory into a standard ascii string.
877 String string;
881 string = XtMalloc(sizeof(unsigned char) * src->ascii_src.length + 1);
885 strncpy(string + first, piece->text, piece->used);
887 string[src->ascii_src.length] = '\0'; /* NULL terminate this sucker. */
895 LoadPieces(src, NULL, string);
898 return(string);
902 * Description: Initializes the string or file.
915 if (src->ascii_src.string == NULL)
918 src->ascii_src.length = strlen(src->ascii_src.string);
938 if (src->ascii_src.string == NULL)
946 if (src->ascii_src.string == NULL) {
947 src->ascii_src.string = tmpnam (XtMalloc((unsigned)TMPSIZ));
953 src->ascii_src.string = XtNewString(src->ascii_src.string);
966 if ((file = fopen(src->ascii_src.string, open_mode)) == 0) {
970 params[0] = src->ascii_src.string;
993 LoadPieces(src, file, string)
996 char * string;
1002 if (string == NULL) {
1015 local_str = src->ascii_src.string;
1018 local_str = string;
1021 * If we are using teh string in place then set the other fields as follows:
1030 piece->text = src->ascii_src.string;
1049 if ( (src->ascii_src.type == XawAsciiFile) && (string == NULL) )
1157 * Description: Just like string copy, but slower and will always
1244 * Description: Creates a string source.