< prev index next >
jdk/src/java.base/share/classes/sun/text/normalizer/ReplaceableString.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,39 ****
* questions.
*/
/*
*******************************************************************************
! * (C) Copyright IBM Corp. 1996-2005 - All Rights Reserved *
! * *
! * The original version of this source code and documentation is copyrighted *
! * and owned by IBM, These materials are provided under terms of a License *
! * Agreement between IBM and Sun. This technology is protected by multiple *
! * US and International patents. This notice and attribution to IBM may not *
! * to removed. *
*******************************************************************************
*/
package sun.text.normalizer;
--- 23,34 ----
* questions.
*/
/*
*******************************************************************************
! * Copyright (C) 1996-2009, International Business Machines Corporation and *
! * others. All Rights Reserved. *
*******************************************************************************
*/
package sun.text.normalizer;
*** 49,59 ****
*
* @see Replaceable
* @author Alan Liu
* @stable ICU 2.0
*/
! public class ReplaceableString implements Replaceable {
private StringBuffer buf;
/**
* Construct a new object with the given initial contents.
--- 44,54 ----
*
* @see Replaceable
* @author Alan Liu
* @stable ICU 2.0
*/
! class ReplaceableString implements Replaceable {
private StringBuffer buf;
/**
* Construct a new object with the given initial contents.
*** 62,72 ****
*/
public ReplaceableString(String str) {
buf = new StringBuffer(str);
}
- //// for StringPrep
/**
* Construct a new object using <code>buf</code> for internal
* storage. The contents of <code>buf</code> at the time of
* construction are used as the initial contents. <em>Note!
* Modifications to <code>buf</code> will modify this object, and
--- 57,66 ----
*** 96,106 ****
*/
public char charAt(int offset) {
return buf.charAt(offset);
}
- //// for StringPrep
/**
* Copies characters from this object into the destination
* character array. The first character to be copied is at index
* <code>srcStart</code>; the last character to be copied is at
* index <code>srcLimit-1</code> (thus the total number of
--- 90,99 ----
*** 116,123 ****
* @param dst the destination array.
* @param dstStart the start offset in the destination array.
* @stable ICU 2.0
*/
public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) {
! Utility.getChars(buf, srcStart, srcLimit, dst, dstStart);
}
}
--- 109,118 ----
* @param dst the destination array.
* @param dstStart the start offset in the destination array.
* @stable ICU 2.0
*/
public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) {
! if (srcStart != srcLimit) {
! buf.getChars(srcStart, srcLimit, dst, dstStart);
! }
}
}
< prev index next >