亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? w_wrap.c

?? 匯編源代碼大全
?? C
字號:
/* w_wrap.c */

/*
**  This is an attempt at a useful word-wrap function.  It is given an array
**  of characters ( a string ) and it modifies the string, replacing any
**  new-lines found with spaces and placing new-lines where needed to make
**  lines of the width specified, placing them only where there was previously
**  white-space. ( ie. Words are not split across lines. )  At the present
**  time it is rather stupid. 1) It doesn't know enough to split a line at an
**  existing hyphen.  2) It has no clue about how to hyphenate words.  3) It
**  makes no attempt at dealing intelligently with a singly word longer than
**  the specified line length 4) It does not deal intelligently with multiple
**  spaces new-lines, etc. ( eg. has no clue of paragraph seperation, etc. )
**  OTOH, it does deal well with unformatted, left justified text.
**
**  Tabs will be considered the size specified.  Note that word_wrap() does
**  not actually expand tabs.  This is only to inform it of the number of
**  spaces the output device will expand them to, so it will know how much
**  they expand a line.  The only time word_wrap does anything with tabs, is
**  if the tab size is set to zero, in which case each tab is replaced with a
**  single space character.  This often provides the most useful output, since
**  tabs will often be in the wrong places after re-formatting, and is
**  therfore the default.
**
**
**  Publicly available contents:
**
**      char *word_wrap(char *string,long line_len);
**          Does the actual word-wrapping, as described above;
**          Parameters:
**            string:     actual string to work with
**            line_len:   length of lines for output
**          Returns:        pointer to justified string.
**
**          void set_tab_size(int size);
**            Set the number of spaces that tabs will be expanded to on output
**            default tab size is zero. (each tab replaced with a space char )
**            word_wrap does not actually expand tabs.  This only lets it keep
**            track of how many spaces they take up.  If this is set to
**            zero, each tab will be replaced with a single space.
**
**  Other procedures:
**      int get_word(char *string);
**          returns the number of characters in the next word in string,
**          including leading white-space characters.
**
**  This compiles without warnings and runs with the following compilers:
**      MS Quick C 2.51:
**      Borland C++ 2.0:            either as C or C++
**      GNU C++ 1.39, DOS port:     either as C or C++
**  As far as I know, it uses only portable, standard C constructs.  It should
**  compile and run with little or no modification under nearly any C compiler
**  and environment.
**
**
**  This code was written Nov 16, 1991 by Jerry Coffin.
**  It is hereby placed in the public domain, for free use by any and
**  all who wish to do so, for any use, public, private, or commercial.
*/

#include <stddef.h>
#include <ctype.h>

enum {FALSE,TRUE};

static int tab_size = 0;                  /* size to consider tabs as */

static size_t get_word(char *string);     /* returns size of next word*/

void set_tab_size(size_t size)
{
      tab_size = size;
}

char *word_wrap(char *string, size_t line_len)
{
      size_t len,                         /* length of current word */
             current_len = 0;             /* current length of line */
      size_t start_line = 0;              /* index of beginning if line */

      while (0 != (len = get_word(&string[current_len + start_line])))
      {
            if (current_len + len < line_len)
                  current_len += len;
            else
            {
                  string[start_line+current_len] = '\n';
                  start_line += current_len + 1;
                  current_len = 0;
            }
      }
      return string;
}

static size_t get_word(char *string)
{
      register int i = 0, word_len = 0;

      if (!string[0])
            return 0;
      while (isspace(string[i]))
      {
            if ('\t' == string[i])
            {
                  if (0 == tab_size)
                        string[i] = ' ';
                  else  word_len += tab_size-1;
            }
            else if ('\n' == string[i])
                  string[i]=' ';
            word_len++;
            i++;
      }
      while (string[i] && !isspace(string[i++]))
            word_len++;
      return word_len;
}

#ifdef TEST

#include <stdio.h>
#include "w_wrap.h"

void main(void)
{
      char *string =
            "This is a long line\nto be wrapped by the w_wrap function. "
            "Hopefully, things will work correctly and it will be wrapped "
            "between words.  On the other hand, maybe I should hope that it "
            "doesn't work well so I will have an opportunity\nto learn more "
            "about what I'm doing";

	printf("Here's a string wrapped to 40 columns:\n\n%s\n\n",
		word_wrap(string, 40));
	printf("And here it's wrapped to 72:\n\n%s\n\n",
		word_wrap(string,72));
}

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久精品免费观看| 国产日产亚洲精品系列| 欧美日韩高清影院| 中文字幕一区二区视频| 天天色综合成人网| 欧美三级电影在线观看| 国产精品网站在线| 午夜视频在线观看一区二区| 成人黄页在线观看| 亚洲一区二区成人在线观看| 三级欧美在线一区| 欧美色图激情小说| 成人网在线免费视频| 国产成人精品影院| 自拍av一区二区三区| 视频一区中文字幕| 成人精品免费网站| 91香蕉视频在线| 精品国产一区二区精华| 亚洲视频资源在线| 国产高清在线精品| 国产精品美女视频| 天堂影院一区二区| 97精品国产露脸对白| 8x福利精品第一导航| 国产精品人成在线观看免费| 日韩和欧美一区二区三区| 久久综合久久鬼色中文字| 亚洲欧美日韩久久精品| 99综合电影在线视频| 国产女人aaa级久久久级| 久久99国产精品麻豆| 欧美一卡2卡三卡4卡5免费| 午夜影院在线观看欧美| 欧美日韩高清在线| 婷婷综合五月天| 8x8x8国产精品| 蜜桃av噜噜一区| 日韩亚洲电影在线| 免费的国产精品| 亚洲精品一区二区在线观看| 久久国产麻豆精品| 国产日韩一级二级三级| 丁香激情综合国产| 中文字幕一区二区三中文字幕| 99久久伊人久久99| 亚洲视频一区二区在线| 色噜噜狠狠一区二区三区果冻| 专区另类欧美日韩| 欧美久久久久免费| 另类调教123区| 久久精品一区二区三区四区| 国产a精品视频| 亚洲欧洲国产日本综合| 国产欧美一区视频| 免费人成网站在线观看欧美高清| 大白屁股一区二区视频| 色婷婷综合久色| 99久久国产免费看| 亚洲尤物在线视频观看| 欧美日韩久久一区二区| 久久99精品久久久久| 国产亚洲精品资源在线26u| 成人免费黄色大片| 亚洲一区二区在线观看视频 | 亚洲一区在线观看网站| 欧美猛男超大videosgay| 麻豆一区二区三| 亚洲欧洲色图综合| 91精品国产乱| 丁香婷婷综合色啪| 亚洲6080在线| 亚洲视频综合在线| 99久久er热在这里只有精品15| youjizz国产精品| 在线观看亚洲精品视频| 天天综合色天天综合| 亚洲国产精品麻豆| 成人免费毛片片v| 日韩视频免费观看高清完整版在线观看| 国产亚洲一区字幕| 久久精品国产秦先生| 欧美色成人综合| 夜夜嗨av一区二区三区网页| 国产精品资源在线| 久久伊人中文字幕| 日本特黄久久久高潮| 91免费国产在线| 亚洲色图一区二区三区| 91首页免费视频| 136国产福利精品导航| 成人深夜福利app| 久久久久久久久蜜桃| 久久国产成人午夜av影院| 日韩欧美国产三级| 中文字幕一区二区在线播放| 欧美性videosxxxxx| 精品毛片乱码1区2区3区| 精品捆绑美女sm三区| 免费久久99精品国产| 日韩视频一区二区三区在线播放| 中文字幕色av一区二区三区| 粉嫩嫩av羞羞动漫久久久| 久久久99精品久久| 亚洲丝袜另类动漫二区| 日韩欧美一区二区三区在线| 精品sm捆绑视频| www.爱久久.com| 综合久久一区二区三区| 婷婷久久综合九色国产成人| 国产精品毛片a∨一区二区三区| 欧美日韩久久一区二区| 欧美在线观看一区| 色偷偷成人一区二区三区91 | 欧美在线免费观看视频| 成人免费高清在线观看| 国产凹凸在线观看一区二区| 国产精品996| 国产一区二区精品在线观看| 26uuu亚洲综合色欧美| 日韩欧美一级特黄在线播放| 成人免费毛片嘿嘿连载视频| 久久丁香综合五月国产三级网站| 日本不卡一二三| 蜜臀av性久久久久av蜜臀妖精| 日本v片在线高清不卡在线观看| 青青草伊人久久| 激情六月婷婷久久| 国产一区二区91| 国产suv精品一区二区6| 国产.欧美.日韩| 91丨porny丨首页| 91福利资源站| 欧美一区二区三区四区五区| 欧美一级日韩一级| 久久网站最新地址| 国产精品乱人伦一区二区| 国产精品美女久久久久aⅴ| 亚洲人成网站精品片在线观看| 亚洲午夜羞羞片| 久88久久88久久久| 国产91精品在线观看| 91亚洲午夜精品久久久久久| 美女视频一区二区三区| 奇米888四色在线精品| 免费观看30秒视频久久| 日韩精品一区第一页| 日本伊人色综合网| 国产一区二区三区四区在线观看| 经典三级一区二区| 99视频精品全部免费在线| 在线观看日韩电影| 精品国免费一区二区三区| 国产精品视频一二三| 亚洲国产美国国产综合一区二区| 久久疯狂做爰流白浆xx| 一本一道久久a久久精品综合蜜臀| 欧美精品乱码久久久久久| 国产三级一区二区三区| 亚洲成人av福利| av中文字幕不卡| 精品欧美一区二区在线观看| 亚洲精品久久久蜜桃| 国产乱子伦视频一区二区三区 | 亚洲与欧洲av电影| 欧洲精品一区二区三区在线观看| 丁香婷婷深情五月亚洲| 欧洲av在线精品| 国产亲近乱来精品视频| 亚洲1区2区3区4区| 99久久国产综合精品色伊| 精品第一国产综合精品aⅴ| 亚洲综合在线观看视频| 成人午夜视频在线| 精品不卡在线视频| 久久精品一区二区三区四区 | 精品国精品国产| 日本伊人色综合网| 欧美精品亚洲二区| 午夜精品久久久| 色综合夜色一区| 日韩欧美在线观看一区二区三区| 中文久久乱码一区二区| 国产一区二区三区av电影| 国产色婷婷亚洲99精品小说| 亚洲444eee在线观看| 欧美在线影院一区二区| 一二三区精品福利视频| 日本伦理一区二区| 亚洲国产综合色| 91精品国产一区二区三区| 午夜视频久久久久久| 欧美色网站导航| 国产一区日韩二区欧美三区| 精品成人免费观看| 精品va天堂亚洲国产| 国产精品综合av一区二区国产馆| 久久精品夜色噜噜亚洲aⅴ| 91亚洲精品久久久蜜桃| 久久精品视频一区二区三区|