XCharacterClassification.idl (d1766043) XCharacterClassification.idl (90ed883b)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_i18n_XCharacterClassification_idl__
25#define __com_sun_star_i18n_XCharacterClassification_idl__
26
27#include <com/sun/star/i18n/ParseResult.idl>

--- 8 unchanged lines hidden (view full) ---

36//============================================================================
37
38module com { module sun { module star { module i18n {
39
40//============================================================================
41
42/*
43
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_i18n_XCharacterClassification_idl__
25#define __com_sun_star_i18n_XCharacterClassification_idl__
26
27#include <com/sun/star/i18n/ParseResult.idl>

--- 8 unchanged lines hidden (view full) ---

36//============================================================================
37
38module com { module sun { module star { module i18n {
39
40//============================================================================
41
42/*
43
44Possible tokens to be parsed with parse...Token():
44Possible tokens to be parsed with parse...Token():
45
46UPASCALPHA=[A-Z]
47LOASCALPHA=[a-z]
48ASCALPHA=1*(UPASCALPHA|LOASCALPHA)
49ASCDIGIT=[0-9]
50ASC_UNDERSCORE='_'
51ASC_SPACE=' '
52ASC_HT='\0x9'

--- 13 unchanged lines hidden (view full) ---

66EXPONENT=(E|e)[SIGN]1*ASC_DIGIT
67
68IDENTIFIER=ALPHA *ALNUM
69UIDENTIFIER=(ALPHA | ASC_UNDERSCORE) *(ALNUM|ASC_UNDERSCORE)
70ALPHA_NAME=ALPHA *(ALNUM|DEFCHARS)
71ANY_NAME=1*(ALNUM|DEFCHARS)
72SINGLE_QUOTE_NAME=ASC_QUOTE(1*CHAR)ASC_QUOTE
73DOUBLE_QUOTE_NAME=ASC_DBL_QUOTE(*CHAR)ASC_DBL_QUOTE
45
46UPASCALPHA=[A-Z]
47LOASCALPHA=[a-z]
48ASCALPHA=1*(UPASCALPHA|LOASCALPHA)
49ASCDIGIT=[0-9]
50ASC_UNDERSCORE='_'
51ASC_SPACE=' '
52ASC_HT='\0x9'

--- 13 unchanged lines hidden (view full) ---

66EXPONENT=(E|e)[SIGN]1*ASC_DIGIT
67
68IDENTIFIER=ALPHA *ALNUM
69UIDENTIFIER=(ALPHA | ASC_UNDERSCORE) *(ALNUM|ASC_UNDERSCORE)
70ALPHA_NAME=ALPHA *(ALNUM|DEFCHARS)
71ANY_NAME=1*(ALNUM|DEFCHARS)
72SINGLE_QUOTE_NAME=ASC_QUOTE(1*CHAR)ASC_QUOTE
73DOUBLE_QUOTE_NAME=ASC_DBL_QUOTE(*CHAR)ASC_DBL_QUOTE
74ASC_NUMBER=[SIGN]*(1*ASC_DIGIT *(GRPSEP 1*ASC_DIGIT))[DECSEP]1*ASC_DIGIT[EXPONENT]
75NUMBER=[SIGN]*(1*DIGIT *(GRPSEP 1*DIGIT))[DECSEP]1*DIGIT[EXPONENT]
74ASC_NUMBER=[SIGN]*(1*ASC_DIGIT *(GRPSEP 1*ASC_DIGIT))[DECSEP]1*ASC_DIGIT[EXPONENT]
75NUMBER=[SIGN]*(1*DIGIT *(GRPSEP 1*DIGIT))[DECSEP]1*DIGIT[EXPONENT]
76
77*/
78
79//============================================================================
80
81/**
82 Character classification (upper, lower, digit, letter, number, ...)
83 and generic Unicode enabled parser.

--- 33 unchanged lines hidden (view full) ---

117 short getCharacterDirection( [in] string aText, [in] long nPos );
118
119 //------------------------------------------------------------------------
120 /// Get <type>UnicodeScript</type> of character at position <em>nPos</em>.
121 short getScript( [in] string aText, [in] long nPos );
122
123 //------------------------------------------------------------------------
124 /// Get <type>KCharacterType</type> of character at position <em>nPos</em>.
76
77*/
78
79//============================================================================
80
81/**
82 Character classification (upper, lower, digit, letter, number, ...)
83 and generic Unicode enabled parser.

--- 33 unchanged lines hidden (view full) ---

117 short getCharacterDirection( [in] string aText, [in] long nPos );
118
119 //------------------------------------------------------------------------
120 /// Get <type>UnicodeScript</type> of character at position <em>nPos</em>.
121 short getScript( [in] string aText, [in] long nPos );
122
123 //------------------------------------------------------------------------
124 /// Get <type>KCharacterType</type> of character at position <em>nPos</em>.
125 long getCharacterType( [in] string aText, [in] long nPos,
125 long getCharacterType( [in] string aText, [in] long nPos,
126 [in] com::sun::star::lang::Locale aLocale );
127
128 //------------------------------------------------------------------------
129 /** Get accumulated <type>KCharacterType</type>s of string starting
130 at position <em>nPos</em> of length <em>nCount</em> code points.
131
132 @returns
133 A number with appropriate flags set to indicate what type of

--- 13 unchanged lines hidden (view full) ---

147 <em>nStartCharFlags</em> and <em>nContCharFlags</em> and may
148 additionally contain characters of
149 <em>aUserDefinedCharactersStart</em> and/or
150 <em>aUserDefinedCharactersCont</em>. </p>
151
152
153 @returns
154 A filled <type>ParseResult</type> structure. If no
126 [in] com::sun::star::lang::Locale aLocale );
127
128 //------------------------------------------------------------------------
129 /** Get accumulated <type>KCharacterType</type>s of string starting
130 at position <em>nPos</em> of length <em>nCount</em> code points.
131
132 @returns
133 A number with appropriate flags set to indicate what type of

--- 13 unchanged lines hidden (view full) ---

147 <em>nStartCharFlags</em> and <em>nContCharFlags</em> and may
148 additionally contain characters of
149 <em>aUserDefinedCharactersStart</em> and/or
150 <em>aUserDefinedCharactersCont</em>. </p>
151
152
153 @returns
154 A filled <type>ParseResult</type> structure. If no
155 unambigous token could be parsed,
155 unambiguous token could be parsed,
156 <member>ParseResult::TokenType</member> will be set to
157 <b>0</b> (zero), other fields will contain the values parsed
158 so far.
159
160 <p> If a token may represent either a numeric value or a
161 name according to the passed Start/Cont-Flags/Chars, both
162 <const>KParseType::ASC_NUM</const> (or
163 <const>KParseType::UNI_NUM</const>) and

--- 108 unchanged lines hidden (view full) ---

272 [in] long nStartCharFlags,
273 [in] string aUserDefinedCharactersStart,
274 [in] long nContCharFlags,
275 [in] string aUserDefinedCharactersCont
276 );
277};
278
279//=============================================================================
156 <member>ParseResult::TokenType</member> will be set to
157 <b>0</b> (zero), other fields will contain the values parsed
158 so far.
159
160 <p> If a token may represent either a numeric value or a
161 name according to the passed Start/Cont-Flags/Chars, both
162 <const>KParseType::ASC_NUM</const> (or
163 <const>KParseType::UNI_NUM</const>) and

--- 108 unchanged lines hidden (view full) ---

272 [in] long nStartCharFlags,
273 [in] string aUserDefinedCharactersStart,
274 [in] long nContCharFlags,
275 [in] string aUserDefinedCharactersCont
276 );
277};
278
279//=============================================================================
280
280}; }; }; };
281
282#endif
281}; }; }; };
282
283#endif