Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Some projects are ready to become open-source
Re: Some projects are ready to become open-source [message #43101 is a reply to message #43030] Wed, 07 May 2014 00:16 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Utils - a minified part of utility package from one of my projects. It is not currently compiled and linked cross-platform. Actually it is not intended to be standalone package, but rather a bunch of possibly useful functions using:
- ICU ( http://site.icu-project.org/ ) a standard Linux/Unix library also present for Windows (may be even inside standard libs, I don't remember exactly).
- iconv a standard Linux/Unix library for charset conversion
- embedded htmlcxx library for html/css parsing

Interesting functions:
Encrypt/Decrypt - very simple AESStream wrapper for small strings conversion. I propose adding them to AESStream itself.
ToJSTime/FromJSTime - very simple conversion from/to javascript "integer" Time/Date representation.
ConvertTextToUtf8 - ICU's charset detector result routed to iconv library making output text with utf-8 charset. My tests introduced excellent results for big texts (about 1 KB) and rather good results for texts above 100 bytes. If text is about ~10 bytes, the charset detection generally results in wrong detected charsets.
SafeguardPlain - web-oriented function to convert text added by user to make it 100% safe before embedding it to web page.
SafeguardHTML - web-oriented function to convert html to make it 100% safe before embedding it to web page. The only way of doing it is parsing input html (with htmlcxx), then filtering it (with HTMLFilter class), and then reconstructing resulting html back again. You may of course take htmlcxx library from this package and use it the way you want (using SafeguardHTML as an example of htmlcxx usage).
ParseFormData - is a function to parse input form-data from socket (actually it is little outdated, but it is no problem rewriting it for TcpSocket). The main idea behind this function is to create streaming solution for downloading large files from Internet to the drive. So ordinary form fields are added to fields variable, and files are streamed directly to file system using file names from files variable. Very useful when working with big data in servers.

[Updated on: Wed, 07 May 2014 00:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SysInfo: Added GetAvailableSocketPort
Next Topic: SysInfoGui - some improvements
Goto Forum:
  


Current Time: Fri Apr 26 18:27:58 CEST 2024

Total time taken to generate the page: 0.03261 seconds