암호생성기
TIMESTAMP
문서
우편번호
번역기
트랙백전송
 


Search Results for '프로그램'

ATOM Icon

1 POSTS

  1. 2010/04/07 암호 생성기 업그레이드 by noneofnone

HTML 유니코드 변환

HTML에서 ō 처럼 제대로 인식하지 못하는 한글코드를 본래의 글자로 변환
apache regexp  사용 (http://jakarta.apache.org/regexp/)
programming language : java
-----------------------------------------------------------------------------


    public String getOriginalString(String src) {
        try {
            String regexp = "&#([0-9]{1,5});";
            RE r = new RE(regexp);
    
            boolean b;
            String content = src;
            StringBuffer buffer = new StringBuffer();
            while((b = r.match(content))) {
                content = processChar(buffer, content, r);
            }
            buffer.append(content);
            return buffer.toString();
        } catch(Exception e) {
            return src;
        }
    }

    private String processChar(StringBuffer buffer, String content, RE r) throws Exception {
        String s = r.getParen(1);
        int idx = r.getParenStart(0);
        int length = r.getParenLength(0);
        int n = Integer.parseInt(s);
        
        buffer.append(content.substring(0, idx)).append((char)n);
        return content.substring(idx+length);
    }

작성자 : noneofnone

2010/06/29 17:17 2010/06/29 17:17
반응
트랙백 0, 댓글 0
RSS :
http://purmi.org/blog/noneofnone/rss/response/14

트랙백 URL : http://purmi.org/blog/noneofnone/trackback/14

암호 생성기 업그레이드

암호 생성기를 간만에 업그레이드 했습니다.

http://p.purmi.org/passgen/

추가된 기능은 다음과 같습니다.
1. 특수문자 조합
2. 특수문자 셋 저장기능(쿠키 이용)

작성자 : noneofnone

2010/04/07 21:40 2010/04/07 21:40
반응
트랙백 0, 댓글 0
RSS :
http://purmi.org/blog/noneofnone/rss/response/5

트랙백 URL : http://purmi.org/blog/noneofnone/trackback/5