atkwrapper.hxx (0d63794c) | atkwrapper.hxx (24c56ab9) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 99 unchanged lines hidden (view full) --- 108#define ATK_TYPE_OBJECT_WRAPPER atk_object_wrapper_get_type() 109#define ATK_OBJECT_WRAPPER(obj) \ 110 (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_WRAPPER, AtkObjectWrapper)) 111 112static inline gchar * 113OUStringToGChar(const rtl::OUString& rString ) 114{ 115 rtl::OString aUtf8 = rtl::OUStringToOString( rString, RTL_TEXTENCODING_UTF8 ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 99 unchanged lines hidden (view full) --- 108#define ATK_TYPE_OBJECT_WRAPPER atk_object_wrapper_get_type() 109#define ATK_OBJECT_WRAPPER(obj) \ 110 (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_WRAPPER, AtkObjectWrapper)) 111 112static inline gchar * 113OUStringToGChar(const rtl::OUString& rString ) 114{ 115 rtl::OString aUtf8 = rtl::OUStringToOString( rString, RTL_TEXTENCODING_UTF8 ); |
116 return g_strdup( aUtf8 ); | 116 return g_strdup( aUtf8.getStr() ); |
117} 118 119#define OUStringToConstGChar( string ) rtl::OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr() 120 121#endif /* __ATK_WRAPPER_HXX__ */ | 117} 118 119#define OUStringToConstGChar( string ) rtl::OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr() 120 121#endif /* __ATK_WRAPPER_HXX__ */ |