summaryrefslogtreecommitdiff
path: root/libjava/java/text/Bidi.h
blob: 59b80ed5a71817dc312fe310a7929fc2c8dcfa95 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_text_Bidi__
#define __java_text_Bidi__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace text
    {
        class AttributedCharacterIterator;
        class Bidi;
    }
  }
}

class java::text::Bidi : public ::java::lang::Object
{

public:
  Bidi(::java::text::AttributedCharacterIterator *);
  Bidi(JArray< jchar > *, jint, JArray< jbyte > *, jint, jint, jint);
  Bidi(::java::lang::String *, jint);
private:
  void computeTypes();
  jint computeParagraphEmbeddingLevel();
  void computeExplicitLevels();
  void computeRuns();
  void resolveWeakTypes();
  void resolveNeutralTypes();
  void resolveImplicitLevels();
  void reinsertFormattingCodes();
  void runBidi();
public:
  jboolean baseIsLeftToRight();
  ::java::text::Bidi * createLineBidi(jint, jint);
  jint getBaseLevel();
  jint getLength();
  jint getLevelAt(jint);
  jint getRunCount();
  jint getRunLevel(jint);
  jint getRunLimit(jint);
  jint getRunStart(jint);
  jboolean isLeftToRight();
  jboolean isMixed();
  jboolean isRightToLeft();
  ::java::lang::String * toString();
  static void reorderVisually(JArray< jbyte > *, jint, JArray< ::java::lang::Object * > *, jint, jint);
  static jboolean requiresBidi(JArray< jchar > *, jint, jint);
  static const jint DIRECTION_DEFAULT_LEFT_TO_RIGHT = -2;
  static const jint DIRECTION_DEFAULT_RIGHT_TO_LEFT = -1;
  static const jint DIRECTION_LEFT_TO_RIGHT = 0;
  static const jint DIRECTION_RIGHT_TO_LEFT = 1;
private:
  static const jint LTOR = 1;
  static const jint RTOL = 2;
  JArray< jchar > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) text;
  jint textOffset;
  JArray< jbyte > * embeddings;
  jint embeddingOffset;
  jint length;
  jint flags;
  jint baseEmbedding;
  JArray< jbyte > * types;
  JArray< jbyte > * levels;
  ::java::util::ArrayList * formatterIndices;
  JArray< jint > * runs;
  jint resultFlags;
public:
  static ::java::lang::Class class$;
};

#endif // __java_text_Bidi__