< prev index next >

modules/javafx.web/src/main/native/Source/WTF/wtf/java/StringJava.cpp

Print this page
rev 11020 : 8201563: Update copyright header for files modified in 2018
Reviewed-by:
   1 /*
   2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 #include "config.h"
   5 
   6 #include <wtf/Vector.h>
   7 #include <wtf/text/WTFString.h>
   8 
   9 namespace WTF {
  10 
  11 // String conversions
  12 String::String(JNIEnv* env, const JLString &s)
  13 {
  14     if (!s) {
  15         m_impl = StringImpl::empty();
  16     } else {
  17         unsigned int len = env->GetStringLength(s);
  18         if (!len) {
  19             m_impl = StringImpl::empty();
  20         } else {
  21             const jchar* str = env->GetStringCritical(s, NULL);
  22             if (str) {


   1 /*
   2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 #include "config.h"
   5 
   6 #include <wtf/Vector.h>
   7 #include <wtf/text/WTFString.h>
   8 
   9 namespace WTF {
  10 
  11 // String conversions
  12 String::String(JNIEnv* env, const JLString &s)
  13 {
  14     if (!s) {
  15         m_impl = StringImpl::empty();
  16     } else {
  17         unsigned int len = env->GetStringLength(s);
  18         if (!len) {
  19             m_impl = StringImpl::empty();
  20         } else {
  21             const jchar* str = env->GetStringCritical(s, NULL);
  22             if (str) {


< prev index next >