All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.webkit.text.StringCase Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
 */
package com.sun.webkit.text;

import java.util.Locale;

final class StringCase {
        
    // Note that we should perform case-conversion with neutral locale to 
    // match the behavior of other WebKit Unicode implementations.

    private static String toLowerCase(String src) {
        return src.toLowerCase(Locale.ROOT);
    }
        
    private static String toUpperCase(String src) {
        return src.toUpperCase(Locale.ROOT);
    }
        
    private static String foldCase(String src) {
        return src.toUpperCase(Locale.ROOT).toLowerCase(Locale.ROOT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy