~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/common/unicode/rep.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
     * @return code unit of text at given offset
78
78
     * @draft ICU 1.8
79
79
     */
80
 
    inline UChar charAt(UTextOffset offset) const;
 
80
    inline UChar charAt(int32_t offset) const;
81
81
 
82
82
    /**
83
83
     * Return the Unicode code point that contains the code unit
88
88
     * @return code point of text at given offset
89
89
     * @draft ICU 1.8
90
90
     */
91
 
    inline UChar32 char32At(UTextOffset offset) const;
 
91
    inline UChar32 char32At(int32_t offset) const;
92
92
 
93
93
    /**
94
94
     * Copy the characters in the range [<tt>start</tt>, <tt>limit</tt>) 
100
100
     * @return A reference to <TT>target</TT>
101
101
     * @draft ICU 2.1
102
102
     */
103
 
    virtual void extractBetween(UTextOffset start,
104
 
                                UTextOffset limit,
 
103
    virtual void extractBetween(int32_t start,
 
104
                                int32_t limit,
105
105
                                UnicodeString& target) const = 0;
106
106
 
107
107
    /**
124
124
     * to <code>limit - 1</code> 
125
125
     * @stable
126
126
     */
127
 
    virtual void handleReplaceBetween(UTextOffset start,
128
 
                                      UTextOffset limit,
 
127
    virtual void handleReplaceBetween(int32_t start,
 
128
                                      int32_t limit,
129
129
                                      const UnicodeString& text) = 0;
130
130
    // Note: All other methods in this class take the names of
131
131
    // existing UnicodeString methods.  This method is the exception.
175
175
    /**
176
176
     * Virtual version of charAt().
177
177
     */
178
 
    virtual UChar getCharAt(UTextOffset offset) const = 0;
 
178
    virtual UChar getCharAt(int32_t offset) const = 0;
179
179
 
180
180
    /**
181
181
     * Virtual version of char32At().
182
182
     */
183
 
    virtual UChar32 getChar32At(UTextOffset offset) const = 0;
 
183
    virtual UChar32 getChar32At(int32_t offset) const = 0;
184
184
};
185
185
 
186
186
inline Replaceable::Replaceable() {}
193
193
}
194
194
 
195
195
inline UChar
196
 
Replaceable::charAt(UTextOffset offset) const {
 
196
Replaceable::charAt(int32_t offset) const {
197
197
    return getCharAt(offset);
198
198
}
199
199
 
200
200
inline UChar32
201
 
Replaceable::char32At(UTextOffset offset) const {
 
201
Replaceable::char32At(int32_t offset) const {
202
202
    return getChar32At(offset);
203
203
}
204
204