Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmstringsegmentcreate(3) [hpux man page]

XmStringSegmentCreate(library call)									       XmStringSegmentCreate(library call)

NAME
XmStringSegmentCreate -- A compound string function that creates a compound string SYNOPSIS
#include <Xm/Xm.h> XmString XmStringSegmentCreate( char * text, XmStringTag tag, XmStringDirection direction, Boolean separator); DESCRIPTION
This function is obsolete and exists for compatibility with previous releases. It can be replaced by using a combination of XmStringCompo- nentCreate and XmStringConcat. XmStringSegmentCreate is a high-level function that assembles a compound string consisting of a font list element tag, a direction component, a text component, and an optional separator component. The function allocates space for the returned compound string. The application is responsible for managing the allocated space. The application can recover the allocated space by calling XmStringFree. text Specifies a NULL-terminated string to be used as the text component of the compound string. tag Specifies the tag component to be associated with the text. The value XmFONTLIST_DEFAULT_TAG is for compatibility with previous releases. direction Specifies the direction of the text. separator A value of False means the compound string does not have a separator at the end. A value of True, means a separator immediately follows the text component. RETURN
Returns a new compound string. RELATED
XmStringCreate(3). XmStringSegmentCreate(library call)

Check Out this Related Man Page

XmStringCreate(library call)											      XmStringCreate(library call)

NAME
XmStringCreate -- A compound string function that creates a compound string SYNOPSIS
#include <Xm/Xm.h> XmString XmStringCreate( char *text, char *tag); DESCRIPTION
XmStringCreate creates a compound string with two components: text and a font list element tag. The function will allocate space to hold the returned compound string. When the application no longer needs the returned compound string, the application should call XmStringFree. text Specifies a NULL-terminated string to be used as the text component of the compound string. tag Specifies the tag component to be associated with the given text. The value XmFONTLIST_DEFAULT_TAG identifies a locale text seg- ment. RETURN
Returns a new compound string. RELATED
XmFontList(3), XmFontListAdd(3), XmFontListAppendEntry(3), XmFontListCopy(3), XmFontListCreate(3), XmFontListEntryCreate(3), XmFontListEn- tryFree(3), XmFontListEntryGetFont(3), XmFontListEntryGetTag(3), XmFontListEntryLoad(3), XmFontListFree(3), XmFontListFreeFontContext(3), XmFontListGetNextFont(3), XmFontListInitFontContext(3), XmFontListNextEntry(3), XmFontListRemoveEntry(3), XmString(3), XmStringBaseline(3), XmStringByteCompare(3), XmStringCompare(3), XmStringConcat(3), XmStringCopy(3), XmStringCreateLocalized(3), XmStringCreateLtoR(3), XmStringCreateSimple(3), XmStringDirection(3), XmStringDirectionCreate(3), XmStringDraw(3), XmStringDrawImage(3), XmStringDrawUnderline(3), XmStringEmpty(3), XmStringExtent(3), XmStringFree(3), XmStringFreeContext(3), XmStringGetLtoR(3), XmStringGetNextComponent(3), XmStringGet- NextSegment(3), XmStringHasSubstring(3), XmStringHeight(3), XmStringInitContext(3), XmStringLength(3), XmStringLineCount(3), XmStringNCon- cat(3), XmStringNCopy(3), XmStringPeekNextComponent(3), XmStringSegmentCreate(3), XmStringSeparatorCreate(3), XmStringTable(3), and XmStringWidth(3). XmStringCreate(library call)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with unix separator

can some one give me a list of unix separtor(s) if one than just the separator please thank you. (2 Replies)
Discussion started by: Black mage2021
2 Replies

2. Shell Programming and Scripting

thousands separator

Hi, Trying to represent a number with thousands separator in AWK: echo 1 12 123 1234 12345 123456 1234567 | awk --re-interval '{print gensub(/(])(]{3})/,"\\1,\\2","g")}' 1 12 123 1,234 1,2345 1,23456 1,234567 any idea what is wrong here ? (11 Replies)
Discussion started by: ynixon
11 Replies

3. Shell Programming and Scripting

Field separator Ques.

Hello... Im trying to use "- " as field separator... I used awk -F"- " '{print $3}' input_file ... but it's not working, it assumes that the field separator is "-" and not "- " ... Any ideas ?? :( Thanks (6 Replies)
Discussion started by: yahyaaa
6 Replies

4. Shell Programming and Scripting

awk spliting using separator

Hi I have a file which looks like this #HEllo #How.... #version 1.0.1 #Author aaaaa ab.-.1.-.90.-.80.-..-.OK cd.-.8.-.91.-.800.-.xy.-..-. the separator is .-. (dot hyphen dot) I want to display this as columns like ab cd 1 8 90 91 (1 Reply)
Discussion started by: PrasannaKS
1 Replies

5. Shell Programming and Scripting

delimiter contents

Hi All, I have a file with contents : cat >file1.sh qw^A34^Aer the command i am using is: cut -f1,2,3 -d"^A" file1.sh which gave output as: qw^A34^Aer and the command cut -f2 -d"^A" file1.sh gave an output : A34 i need the output as : (15 Replies)
Discussion started by: gsandhya31
15 Replies

6. Shell Programming and Scripting

Rename a file based on a specific separator

Hello, I am new to shell I have a folder which contains a list of files, all the files contain the separator : I need to replace this character for all the filenames (by batch) ex: hello:world should become hello-world please help Thanks (3 Replies)
Discussion started by: sikilaklak
3 Replies

7. Shell Programming and Scripting

AWK: FS="[][]" ???

Hi, I was surprised to see such a field separator:confused: If it means the data between "" I just would expect as FS. Can someone explain me please, what that exactly means? Thanks (5 Replies)
Discussion started by: kajax
5 Replies

8. Shell Programming and Scripting

Strings as Field separator

Hi, How i can use two strings as field separator.. I want to use filed separator's as &lt; and &gt; input - shdhd ads&lt;adsd adfs &gt;sdfsd sfsdfsd&lt; Please help me in this..:wall: thanks a lot... (3 Replies)
Discussion started by: pamu
3 Replies

9. Shell Programming and Scripting

sed multilines + separator confusion !!

Hi Seders, i am new to this forum, but i think it's quite the best place to post. So, here is my pb : I have a csv file, with comma separator and text enclosed by ". First pb is with text in " ......... ", wich sometimes includes lines break, and commas And to complicate a little more,... (4 Replies)
Discussion started by: yogeek
4 Replies

10. Shell Programming and Scripting

Use string as Record separator in awk

Hello to all, Please some help on this. I have the file in format as below. How can I set the record separator as the string below in red "No. Time Source Destination Protocol Length Info" I've tried code below but it doesn't seem to... (6 Replies)
Discussion started by: cgkmal
6 Replies