| | |
| | | |
| | | |
| | | import static org.opends.server.schema.SchemaConstants.*; |
| | | import static org.opends.server.schema.StringPrepProfile.*; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | |
| | | throws DirectoryException |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | | buffer.append(value.toString().trim()); |
| | | prepareUnicode(buffer, value, TRIM, NO_CASE_FOLD); |
| | | |
| | | int bufferLength = buffer.length(); |
| | | if (bufferLength == 0) |
| | |
| | | // normalizing a full value with the exception that it may include an |
| | | // opening or trailing space. |
| | | StringBuilder buffer = new StringBuilder(); |
| | | buffer.append(substring.toString()); |
| | | prepareUnicode(buffer, substring, false, NO_CASE_FOLD); |
| | | |
| | | int bufferLength = buffer.length(); |
| | | if (bufferLength == 0) |