pcrcommon.cxx (2a97ec55) pcrcommon.cxx (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

--- 47 unchanged lines hidden (view full) ---

56 else
57 return rtl::OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
58 }
59
60 //------------------------------------------------------------------------
61 ::rtl::OUString HelpIdUrl::getHelpURL( const rtl::OString& sHelpId )
62 {
63 ::rtl::OUStringBuffer aBuffer;
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

--- 47 unchanged lines hidden (view full) ---

56 else
57 return rtl::OUStringToOString( _rHelpURL, RTL_TEXTENCODING_UTF8 );
58 }
59
60 //------------------------------------------------------------------------
61 ::rtl::OUString HelpIdUrl::getHelpURL( const rtl::OString& sHelpId )
62 {
63 ::rtl::OUStringBuffer aBuffer;
64 ::rtl::OUString aTmp( sHelpId, sHelpId.getLength(), RTL_TEXTENCODING_UTF8 );
64 ::rtl::OUString aTmp( rtl::OStringToOUString( sHelpId, RTL_TEXTENCODING_UTF8 ));
65 INetURLObject aHID( aTmp );
66 if ( aHID.GetProtocol() == INET_PROT_NOT_VALID )
67 aBuffer.appendAscii( INET_HID_SCHEME );
68 aBuffer.append( aTmp.getStr() );
69 return aBuffer.makeStringAndClear();
70 }
71//............................................................................
72} // namespace pcr
73//............................................................................
74
65 INetURLObject aHID( aTmp );
66 if ( aHID.GetProtocol() == INET_PROT_NOT_VALID )
67 aBuffer.appendAscii( INET_HID_SCHEME );
68 aBuffer.append( aTmp.getStr() );
69 return aBuffer.makeStringAndClear();
70 }
71//............................................................................
72} // namespace pcr
73//............................................................................
74