File: SortNumberBehavior.idl

package info (click to toggle)
libreoffice 4%3A26.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,837,456 kB
  • sloc: cpp: 4,397,406; xml: 499,109; java: 254,438; python: 81,844; ansic: 33,825; perl: 30,297; javascript: 19,722; sh: 12,050; makefile: 10,852; cs: 8,865; yacc: 8,549; objc: 2,131; lex: 1,385; asm: 1,231; awk: 996; pascal: 914; csh: 20; sed: 5
file content (48 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

module com {  module sun {  module star {  module sheet {

/** Describes how numbers inside text are handled in text comparisons.

    <p>The constants correspond to the ODF attribute
    table:embedded-number-behavior (19.628, part 3 ODF 1.4).</p>

    @since LibreOffice 26.2
 */
published constants SortNumberBehavior
{
    /** Digits inside text are compared alphanumerically.

        <p>"K10" &lt; "K2" &lt; "K3", for example.</p>
      */
    const long ALPHA_NUMERIC = 0;

    /** Comparison of text uses natural sort with decimal numbers.

        <p>Example: "K2" &lt; "K3" &lt; "K10".<br/>
        The number parts inside the text may be decimal numbers.
        Which character is considered a decimal separator, depends on
        the locale. Read ODF standard for details.<br/>
        Example with dot as decimal separator: "K2.40" &lt; "K2.5"</p>
      */
    const long DOUBLE = 1;

    /** Comparison of text uses natural sort with integer numbers.

        <p>Any decimal separator is treated as ordinary character.
        A fractional part is handled as separate number.<br/>
        Example: "K2.5" &lt; "K2.40", because 5 &lt; 40.</p>
      */
    const long INTEGER = 2;
};

}; }; }; };

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */