約 4,312,601 件
https://w.atwiki.jp/cheezecake/pages/23.html
locateで今きづいた。 日本語ファイルの文字化けがひどい。 $ locate odt c?)c??c??c?+.odt こんなパターンの文字化けを見たことがない。 本来は $ locate odt てすと.odt ちょっと探したけど、locateの文字コード設定は見つからず。 すでにデータはASCIIになっているぽいので、locateが文字列を破壊してから保存したようだ。 もう修復不能。 locateで日本語ファイル名を検索するのは、あきらめたほうがいい。 今までどうして気づかなかったんだろう。 locateではASCIIのファイル名しか検索したことがないからか。
https://w.atwiki.jp/monozukiclub/pages/424.html
Giocatore ジョカトーレ 公式ホームページ ? 所属リーグ:岐阜県社会人サッカーリーグ1部(7部相当) 法人名: 代表者: 創立年: 活動区域/ホームタウン:岐阜県/関市 クラブカラー: ホームスタジアム: 練習グラウンド: アカデミー(育成): クラブマスコット:- ユニフォームサプライヤー: 監督: 公式SNS Tweets by gioca0427
https://w.atwiki.jp/commusoccerfb/pages/447.html
Giocatore ジョカトーレ 所属リーグ:岐阜県社会人サッカーリーグ1部(7部相当) ホームタウン:岐阜県/関市 公式サイト 公式YouTube 公式Twitter 公式Instagram 公式Facebook
https://w.atwiki.jp/my-sql/pages/43.html
HOME 関数 文字列関数 LOCATE LOCATE LOCATE(substr,str) LOCATE(substr,str,pos) 最初の構文は、文字列 str に最初に出現する部分文字列 substr の位置を返す。 2 番目の構文は、文字列 str の位置 pos 以降に最初に出現する部分文字列 substr の位置を返す。 str 内に substr が存在しない場合は 0 を返す。 mysql SELECT LOCATE( bar , foobarbar ); - 4 mysql SELECT LOCATE( xbar , foobar ); - 0 mysql SELECT LOCATE( bar , foobarbar ,5); - 7 mysql SELECT LOCATE( え , あいうえおうえ ); - 4 mysql SELECT LOCATE( え , あいうえおうえ , 5); - 7 この関数はマルチバイト文字に対応している。 MySQL 3.23 では、この関数では大文字と小文字が区別されるが(ケース依存)、バージョン 4.0 では、どちらかの引数がバイナリ文字列の場合にのみケース依存になる。
https://w.atwiki.jp/aster-infra/pages/186.html
あらかじめ作成されたデータベースに基づいて、指定されたパターンに一致するファイルを検索します。 locateコマンドは、セキュリティ機能を向上させたslocateコマンドへのリンクとなっています。 locate 検索パターン 次の例では、ファイル名が「.h」で終わるファイルを検索しています。 #locate "*.h"
https://w.atwiki.jp/darui_program/pages/234.html
#ifndef __ALLOCATOR_H__ #define __ALLOCATOR_H__ #include vector /*===============================================*/ /*MemoryInfo */ /*===============================================*/ //! メモリ情報 struct MemoryInfo; /*===============================================*/ /*IAllocator */ /*===============================================*/ //! メモリ生成者インターフェース class IAllocator { public //! デストラクタ virtual ~IAllocator() {} //! メモリ作成 virtual void* Allocate( size_t, const char*, int ) = 0; //! メモリ破棄 virtual void Deallocate( void* ) = 0; }; /*===============================================*/ /*DefaultAllocator */ /*===============================================*/ //! デフォルトメモリ割り当て /*! *メモリ生成 new メモリ破棄 delete をするだけのクラス * */ class DefaultAllocator public IAllocator { //! コンストラクタ DefaultAllocator(); public //! デストラクタ ~DefaultAllocator(); //! 実体取得 //! @return 実体 static DefaultAllocator* Get(); //! メモリ生成 //! @param [in] s サイズ //! @param [in] f ファイル //! @param [in] l ライン //! @return メモリ void* Allocate( size_t s, const char* f, int l ); //! メモリ破棄 //! @param [out] p メモリ void Deallocate( void* p ); }; /*===============================================*/ /*AllocateManager */ /*===============================================*/ //! メモリ割り当て管理 class AllocateManager { IAllocator* m_alloc;//! メモリ管理 public //! コンストラクタ AllocateManager(); //! デストラクタ ~AllocateManager(); //! メモリ生成 //! @param [in] s サイズ //! @param [in] f ファイル //! @param [in] l ライン void* Allocate( size_t s, const char* f, int l ); //! メモリ破棄 //! @param [out] p メモリ void Deallocate( void* p ); //! メモリ作成者設定 //! NULLを代入するとデフォルトのメモリ生成状態となるので @n //! 破棄する場合はNULLを設定すること //! @param [in,out] alloc メモリ生成者 void Set( IAllocator* alloc ); }; /*===============================================*/ /*Alloc */ /*===============================================*/ //! メモリ割り当て class Alloc { AllocateManager m_manager;//! メモリ管理 //! コンストラクタ Alloc(); public //! 実体取得 //! @return 実体 static Alloc* Get(); //! メモリ生成 //! @param [in] s サイズ //! @param [in] f ファイル名 //! @param [in] l ライン //! @return メモリ void* Allocate( size_t s, const char* f, int l ); //! メモリ破棄 //! @param [out] p メモリ void Deallocate( void* p ); //! メモリ生成者設定 //! @param [in,out] alloc メモリ生成者 void Set( IAllocator* alloc ); }; /*===============================================*/ /*BaseAllocator */ /*===============================================*/ //! メモリ割り当てベース /*! *メモリ割り当てに必要な制約を受け持つクラス @n *通常はこのクラスを継承して使用する * */ class BaseAllocator public IAllocator { public //! コンストラクタ BaseAllocator(); //! デストラクタ virtual ~BaseAllocator(); //! メモリ生成 virtual void* Allocate( size_t, const char*, int ) = 0; //! メモリ破棄 virtual void Deallocate( void* ) = 0; }; /*===============================================*/ /*Allocator */ /*===============================================*/ //! メモリ割り当て /*! *メモリリーク検知を行う * */ class Allocator public BaseAllocator { private //! コンテナ typedef std vector MemoryInfo* container; //! イテレータ typedef container iteratoriterator; //! イテレータ typedef container const_iteratorconst_iterator; containerm_container;//! メモリ情報コンテナ public //! コンストラクタ Allocator(); //! デストラクタ ~Allocator(); //! メモリ生成 //! @param [in] s サイズ //! @param [in] f ファイル //! @param [in] l ライン //! @return メモリ void* Allocate( size_t s, const char* f, int l ); //! メモリ破棄 //! @param [out] p メモリ void Deallocate( void* p ); //! リークチェック //! @retval true メモリリークしていない //! @retval fales メモリリークしている bool Check() const; }; #endif//__ALLOCATOR_H__
https://w.atwiki.jp/abwiki/pages/286.html
名称 |Locate 読み |ろけっと 定義 |Locate x,y 説明 |画面の座標x,yを文字の表示位置に変更。 参照 |
https://w.atwiki.jp/darui_program/pages/235.html
#include iostream #include algorithm #include functional #include "gttest.h" #include "allocator.h" /*===============================================*/ /*MemoryInfo */ /*===============================================*/ struct MemoryInfo { void* address;//! アドレス const char* file;//! ファイル int line;//! ライン }; /*===============================================*/ /*DefaultAllocator */ /*===============================================*/ //----------------------------------------------- DefaultAllocator DefaultAllocator() { } //----------------------------------------------- DefaultAllocator ~DefaultAllocator() { } //----------------------------------------------- DefaultAllocator* DefaultAllocator Get() { static DefaultAllocator instance; return instance; } //----------------------------------------------- void* DefaultAllocator Allocate( size_t s, const char*, int ) { return operator new ( s ); } //----------------------------------------------- void DefaultAllocator Deallocate( void* p ) { operator delete ( p ); } /*===============================================*/ /*AllocateManager */ /*===============================================*/ //----------------------------------------------- AllocateManager AllocateManager() m_alloc( NULL ) { Set( NULL ); } //----------------------------------------------- AllocateManager ~AllocateManager() { } //----------------------------------------------- void* AllocateManager Allocate( size_t s, const char* f, int l ) { return m_alloc- Allocate( s, f, l ); } //----------------------------------------------- void AllocateManager Deallocate( void* p ) { m_alloc- Deallocate( p ); } //----------------------------------------------- void AllocateManager Set( IAllocator* alloc ) { if( alloc )m_alloc = alloc; elsem_alloc = DefaultAllocator Get(); } /*===============================================*/ /*Alloc */ /*===============================================*/ //----------------------------------------------- Alloc Alloc() m_manager() { } //----------------------------------------------- Alloc* Alloc Get() { static Alloc instance; return instance; } //----------------------------------------------- void* Alloc Allocate( size_t s, const char* f, int l ) { return m_manager.Allocate( s, f, l ); } //----------------------------------------------- void Alloc Deallocate( void* p ) { m_manager.Deallocate( p ); } //----------------------------------------------- void Alloc Set( IAllocator* alloc ) { m_manager.Set( alloc ); } /*===============================================*/ /*BaseAllocator */ /*===============================================*/ //----------------------------------------------- BaseAllocator BaseAllocator() { Alloc Get()- Set( this ); } //----------------------------------------------- BaseAllocator ~BaseAllocator() { Alloc Get()- Set( NULL ); } /*===============================================*/ /*Allocator */ /*===============================================*/ //----------------------------------------------- Allocator Allocator() m_container() { } //----------------------------------------------- Allocator ~Allocator() { if( m_container.empty() == false ) { std cout "MEMORY_LEAK!!" std endl; struct Print public std unary_function MemoryInfo*, void { void operator () ( MemoryInfo* mem ) { std cout "FILE " mem- file std endl; std cout " LINE " mem- line std endl; } }; struct Delete public std unary_function MemoryInfo*, void { void operator () ( MemoryInfo* mem ) { delete( mem- address ); delete( mem ); } }; std for_each( m_container.begin(), m_container.end(), Print() ); std for_each( m_container.begin(), m_container.end(), Delete() ); } } //----------------------------------------------- void* Allocator Allocate( size_t s, const char* f, int l ) { MemoryInfo* mem = new MemoryInfo(); mem- address = operator new( s ); mem- file = f; mem- line = l; m_container.push_back( mem ); return mem- address; } //----------------------------------------------- void Allocator Deallocate( void* p ) { iterator beg( m_container.begin() ), end( m_container.end() ); for( ; beg!=end; ++beg ) { if( (*beg)- address == p ) { delete( (*beg) ); m_container.erase( beg ); break; } } operator delete( p ); } //----------------------------------------------- bool Allocator Check() const { return m_container.empty(); }
https://w.atwiki.jp/natsutan/pages/55.html
概要 コンパイルされたローカル変数の情報 tcl/generic/tclInt.h メンバー struct CompiledLocal *nextPtr; この手続きに対して次のコンパイラが認識しているローカル変数。最後のローカル変数の時はNULL int nameLength; ローカル変数の名前の長さ。lookupのスピードアップに使う。 int frameIndex; この手続きのコールフレームにあるコンパイラがアサインした変数の配列のインデックス。 int flags; フラグ VAR_TEMPORARY, VAR_RESOLVED Tcl_Obj *defValuePtr; 引数のデフォルト値へのポインタ。NULLの時、引数が無いかデフォルト値が無い Tcl_ResolvedVarInfo *resolveInfo; 名前空間に関連つけられた Tcl_ResolvedVarInfo によってつけられたカスタム変数解決の情報。それぞれの変数は、ユニークな ClientData tagとしてマークされている。 char name[4]; 変数名はここから開始する。名前がNULLの場合\0 ソース typedef struct CompiledLocal { struct CompiledLocal *nextPtr; /* Next compiler-recognized local variable for * this procedure, or NULL if this is the last * local. */ int nameLength;/* The number of characters in local * variable s name. Used to speed up variable * lookups. */ int frameIndex;/* Index in the array of compiler-assigned * variables in the procedure call frame. */ int flags;/* Flag bits for the local variable. Same as * the flags for the Var structure above, * although only VAR_ARGUMENT, VAR_TEMPORARY, * and VAR_RESOLVED make sense. */ Tcl_Obj *defValuePtr;/* Pointer to the default value of an * argument, if any. NULL if not an argument * or, if an argument, no default value. */ Tcl_ResolvedVarInfo *resolveInfo; /* Customized variable resolution info * supplied by the Tcl_ResolveCompiledVarProc * associated with a namespace. Each variable * is marked by a unique ClientData tag during * compilation, and that same tag is used to * find the variable at runtime. */ char name[4];/* Name of the local variable starts here. If * the name is NULL, this will just be \0 . * The actual size of this field will be large * enough to hold the name. MUST BE THE LAST * FIELD IN THE STRUCTURE! */ } CompiledLocal;
https://w.atwiki.jp/kimikage/pages/73.html
IPアドレスや、GPSから位置情報を取得! script type="text/javascript" if (navigator.geolocation) { // 現時位置の取得 navigator.geolocation.getCurrentPosition( // 位置情報の取得成功 function (pos) { var location = " p 緯度:" + pos.coords.latitude + " /p "; location += " p 経度:" + pos.coords.longitude + " /p "; var link = "http //maps.google.co.jp/maps?q=" + pos.coords.latitude + ",+" + pos.coords.longitude + "+%28%8E%E6%93%BE%82%B3%82%EA%82%BD%8C%BB%8D%DD%92n%29 iwloc=A hl=ja"; var doc = document.getElementById("msg"); doc.innerHTML = location; doc.innerHTML += " p 【現在地をGoogleMapで検索】 /p "; doc.innerHTML += " p a href=\"" + link + "\" " + link + " /a /p "; }, // 位置情報の取得失敗 function (error) { var errMsg = ""; switch (error.code) { // 位置情報の取得が拒否された case error.PERMISSION_DENIED errMsg = "位置情報の取得が拒否されました。"; break; // 位置情報を取得できなかった case error.POSITION_UNAVAILABLE errMsg = "位置情報を取得できませんでした。"; break; // タイムアウト case error.PERMISSION_DENIED_TIMEOUT errMsg = "位置情報の取得中にタイムアウトが発生しました。"; break; } alert(errMsg ); } ); } else { alert("Geolocationに非対応のブラウザです。"); } /script div br / h1 geolocationのテストです! /h1 br / p IPアドレスや、GPS等から位置情報を取得。IPアドレスだと、だいぶ位置がずれる。 /p /div div id="msg" /div