frogcast / gdata-cpp-util Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gdata-cpp-util
Automatically exported from code.google.com/p/gdata-cpp-util
To install the dependencies: libxml++ requires libxml2 and glibmm-2.4 Install libxml++2.6-dev: sudo apt-get install libxml++2.6-dev You can also install from the source: ./configure make make install Install libcurl3-dev: sudo apt-get install libcurl3-dev To run unit tests, install libcppunit-dev: sudo apt-get install libcppunit-dev ----- To run the doclist_sample.cc: Type 'make' in the root source directory.
Вопрос
Original issue reported on code.google.com by [email protected]
on 8 Sep 2011 at 10:49
What steps will reproduce the problem?
1. Try to use this code to login to an account that has, for example, '+' in
the username or '%'
characters in the password
Please provide any additional information below.
From source code inspection, when you use URLs that include
?name1=value1&name2=value2
parameters, the values must be percent escaped, and don't forget that servers
will interpret '+' as ' '
. Further, email addresses of the form [email protected] are legal, and
are equivalend to
[email protected].
Original issue reported on code.google.com by [email protected]
on 27 Apr 2009 at 5:17
I'm just reading the source code, but it looks like after the replace, the
iterator i is left at the
beginning of the replacement, so the next time through the loop it scans it.
so,
StringUtils::find_and_replace("alpha", "a", "a and a "); will infinite loop,
inserting copies of the
replacement string.
Since find_and_replace() copies its first argument anway, an easy fix would be
for it to take its
source parameter by const ref, copying and replacing substrings to an output
string as it goes.
Original issue reported on code.google.com by [email protected]
on 27 Apr 2009 at 5:11
Hello,
i cant run this sample project, i recive this error:
fatal error C1083: Cannot open include file: 'gdata/util/string_utils.h':
No such file or directory
Were is this file string_utils.h???
What i'm doing wrong???
Thanks for any help
brak
Original issue reported on code.google.com by [email protected]
on 25 Feb 2010 at 10:55
What steps will reproduce the problem?
1. attempting to make the sample project
What is the expected output? What do you see instead?
You would expect the project to build correctly, instead:
g++ -c -Wall -O3 gdata/client/service.cc `pkg-config libxml++-2.6 --cflags`
`curl-config --cflags`
gdata/client/service.cc: In member function ‘std::string
gdata::client::Service::HttpRequest(const std::string&, const std::string&,
const std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&, const
gdata::client::PostData&) const’:
gdata/client/service.cc:105: error: ‘strlen’ was not declared in this scope
gdata/client/service.cc:131: error: ‘exit’ was not declared in this scope
gdata/client/service.cc:151: error: ‘exit’ was not declared in this scope
gdata/client/service.cc:155: error: ‘exit’ was not declared in this scope
make: *** [service.o] Error 1
Not sure whether this is some kind of compiler issue I'm not familiar with,
I haven't written C/C++ code for several years so forgive my ignorance if
I've just set up my environment incorrectly.
What version of the product are you using? On what operating system?
I'm building on fedora core 10, with all of the proper dependencies
installed. I grabbed the latest svn trunk as of about 20 minutes ago.
Please provide any additional information below.
I fixed this pretty easily by adding an include for <string.h> and
<cstdlib> to the affected files:
gdata/client/service.cc: added <string.h> and <cstdlib>
doclistsample.cc: added <cstdlib>
Original issue reported on code.google.com by [email protected]
on 23 Mar 2009 at 7:25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.