LessThanDot Site Logo

LessThanDot

A Technical Community for IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Highly Rated Users

Forum
No Posts Rated

Top 50
Given
Received

Links

Wiki
Blog

Forum Statistics

Users
Members:
1884
Members Online:
2
Guests Online:
74

Total Post History
Posts:
81461
Topics:
18719

7-Day Post History
New Posts:
4
New Topics:
1
Active Topics:
2

Our newest member
manails232x

Other

FAQ
All times are UTC [ DST ]

Google Code-Search

Please wait...

Google Code-Search

Postby Remou on Fri Jul 31, 2009 7:03 pm

http://google.com/codesearch

Syntax and Examples
regexp                          Search for a regular expression
go{2}gle hello,\ world ^int printk
"exact string" Search for exact string
"compiler happy"
class:regexp function:regexp Search only in class and function names New!
class:BTree function:laugh
class:hash.*multimap function:.*range
file:regexp Search only in files or directories matching regexp
file:\.js$ XMLHttpRequest file:include/ ioctl
file:/usr/sys/ken/slp.c "You are not expected to understand this."
package:regexp Search packages with names matching regexp.
(A package's name is its URL or CVS server information.)
package:perl.*\.tar\.gz Frodo package:linux-2.6 int\ printk
lang:regexp Search only for programs written in languages matching regexp
lang:lisp xml lang:"c++" sprintf.*%s
license:regexp Search only for files with licenses matching regexp.
license:bsd int\ printf -license:gpl heapsort
Stop quoting laws to us. We carry swords.
User avatar
Remou
LTD Admin
LTD Admin
LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971
LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971LTD Gold - Rating: 971
LTD Gold - Rating: 971
 
Posts: 5414
Joined: Sun Oct 14, 2007 11:26 am
Unrated

Re: Google Code-Search

Postby SQLDenis on Fri Jul 31, 2009 7:09 pm

Mmmmm, http://google.com/codesearch?q=moron&hl ... earch+Code

Interesting name none the less
  1. #ifndef cursesmoronize_H
  2. #define cursesmoronize_H
  3.  
  4. #include "mycurses.H"
  5. #include <wchar.h>
  6.  
  7. ///////////////////////////////////////////////////////////////////////////
  8. //
  9. // "Smart characters" processing, a.k.a. moronization
  10. // Example:  Convert typed "1/4" to the ISO-8859-1 character for 1/4.
  11. //
  12.  
  13. class CursesMoronize {
  14.  
  15. public:
  16.  
  17.  
  18.         static size_t moronize(const char *buf, wchar_t &nreplaced);
  19.         //
  20.         // 'buf' should be the characters just preceding the current cursor
  21.         // position, IN REVERSE ORDER.  So, if the cursor is now:
  22.         //
  23.         //           ...1/4_       _ marks the cursor position
  24.         //
  25.         // ... then 'buf' should be '4/1...'.  buf can be as long as the
  26.         // caller wants.  We search for a suitable replacement using
  27.         // strncmp
  28.         //
  29.         // If found a replacement, returns non-zero chars to replace, and
  30.         // set nreplaced to the replacement character
  31.  
  32.         class Entry {
  33.         public:
  34.                 const char *keycode;
  35.                 size_t keycodeLen;
  36.                 wchar_t unicode_char;
  37.         };
  38.  
  39.         static bool enabled;
  40.         static Entry moronizationList[];
  41. };
  42.  
  43. #endif
User avatar
SQLDenis
LTD Admin
LTD Admin
LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467
LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467
LTD Gold - Rating: 3467LTD Gold - Rating: 3467LTD Gold - Rating: 3467
 
Posts: 21784
Joined: Wed Oct 10, 2007 6:43 pm
Location: Princeton, New Jersey, USA,World, Solar System, Milky Way, Universe and Beyond
Unrated